summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-04-24 12:43:24 +0000
committerderaadt <deraadt@openbsd.org>1996-04-24 12:43:24 +0000
commit2d5ee5bce6f5e18000e8347b45274fc5727234bf (patch)
tree2cb65df09223be5c44bd2067a2e5ca2747f7ed95
parentReorder includes. (diff)
downloadwireguard-openbsd-2d5ee5bce6f5e18000e8347b45274fc5727234bf.tar.xz
wireguard-openbsd-2d5ee5bce6f5e18000e8347b45274fc5727234bf.zip
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