start ypserv & rpc.yppasswdd automatically
authorderaadt <deraadt@openbsd.org>
Wed, 24 Apr 1996 12:43:24 +0000 (12:43 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 24 Apr 1996 12:43:24 +0000 (12:43 +0000)
etc/rc

diff --git a/etc/rc b/etc/rc
index 46bd794..335dbe9 100644 (file)
--- a/etc/rc
+++ b/etc/rc
@@ -93,6 +93,14 @@ rm -f /var/spool/uucp/STST/*
 echo -n 'starting rpc daemons:'
 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
        echo -n ' ypbind';              ypbind
 fi