summaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2011-10-07 05:54:49 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2011-10-07 05:54:49 +0000
commitff98fb852d20fb73cb6cbd54c1d87f2524e3d2c2 (patch)
tree189bfc0294e785ddd2f766dd1747bb4348210541 /etc/rc.d
parent40ae0b4df8a4efe85339f479518324962c32cb40 (diff)
Fix a small regression reported by nicm@: when domainname is set but
/var/yp/binding does not exist, do _not_ try to start ypbind. Make it possible to start ypbind the same way as the other daemons (using ypbind_flags) while preserving the historical startup behavior. tested by deraadt@
Diffstat (limited to 'etc/rc.d')
-rw-r--r--etc/rc.d/ypbind4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/ypbind b/etc/rc.d/ypbind
index e7e470c6cd2..167efcd6224 100644
--- a/etc/rc.d/ypbind
+++ b/etc/rc.d/ypbind
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: ypbind,v 1.3 2011/07/08 02:15:34 robert Exp $
+# $OpenBSD: ypbind,v 1.4 2011/10/07 05:54:48 ajacoutot Exp $
daemon="/usr/sbin/ypbind"
@@ -10,7 +10,7 @@ rc_bg=YES
rc_reload=NO
rc_pre() {
- [ X"`domainname`" != X"" -a -d /var/yp/binding ]
+ [ X"`domainname`" != X"" ]
}
rc_cmd $1