summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-24 12:43:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-04-24 12:43:25 +0000
commit30269ca4d783a32b9faf72006574a37a9d748c29 (patch)
treea2109f5077593005fc7bcbdc32397a89320682a1
parentaa682e7654a1563acbe9be365253553eb482ce82 (diff)
start ypserv & rpc.yppasswdd automatically
-rw-r--r--etc/rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 46bd7941cde..335dbe9f771 100644
--- 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