Browse Source

start ypserv & rpc.yppasswdd automatically

OPENBSD_2_0
deraadt 29 years ago
parent
commit
4d8563d564
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      src/etc/rc

+ 8
- 0
src/etc/rc View File

@ -93,6 +93,14 @@ rm -f /var/spool/uucp/STST/*
echo -n 'starting rpc daemons:' echo -n 'starting rpc daemons:'
echo -n ' portmap'; portmap echo -n ' portmap'; portmap
if [ -d /var/yp/`domainname`]; then
echo -n 'ypserv'; ypserv -d
#echo -n 'ypxfrd'; ypxfrd
if [ `ypwhich -m passwd` = `hostname`]; then
echo -n 'rpc.yppasswdd'; rpc.yppasswdd
fi
fi
if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then if [ -f /usr/sbin/ypbind -a -d /var/yp ]; then
echo -n ' ypbind'; ypbind echo -n ' ypbind'; ypbind
fi fi


Loading…
Cancel
Save