summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-22 23:57:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-22 23:57:32 +0000
commitad9792a6197971bbb3fdb46deaa50843969f89f1 (patch)
treebf1570eaec789902f6ad91c411d85d98ca5e3135
parentab167d8ea6f38d6766b4860bc125705d4bb007b2 (diff)
split ypserv & ypbind startup; ypserv does not depend on you being a
client; from amh@POBOX.COM
-rw-r--r--etc/rc11
1 files changed, 7 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 602bdbcc4f5..30ff4dc9c4f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.272 2005/09/19 15:47:45 fgsch Exp $
+# $OpenBSD: rc,v 1.273 2005/09/22 23:57:31 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -336,14 +336,17 @@ if [ X"${portmap}" = X"YES" ]; then
echo -n ' portmap'; portmap
fi
-if [ -d /var/yp/binding -a X`domainname` != X ]; then
+if [ X`domainname` != X ]; then
if [ -d /var/yp/`domainname` ]; then
- # yp server capabilities needed...
+ # YP server capabilities needed...
echo -n ' ypserv'; ypserv ${ypserv_flags}
#echo -n ' ypxfrd'; ypxfrd
fi
- echo -n ' ypbind'; ypbind
+ if [ -d /var/yp/binding ]; then
+ # YP client capabilities needed...
+ echo -n ' ypbind'; ypbind
+ fi
if [ X"${yppasswdd_flags}" != X"NO" -a -d /var/yp/`domainname` ]; then
# if we are the master server, run rpc.yppasswdd