summaryrefslogtreecommitdiff
path: root/etc/rc.d/ypserv
diff options
context:
space:
mode:
authorRobert Nagy <robert@cvs.openbsd.org>2011-07-08 02:15:35 +0000
committerRobert Nagy <robert@cvs.openbsd.org>2011-07-08 02:15:35 +0000
commitf0fb8b5bb61c60c6c12368ef9a304f442c06f30e (patch)
tree5e189a881daa501b679b9ed6ca6b964e5b8f7f23 /etc/rc.d/ypserv
parent40dd25982e0c3bdc7a4c1daaf29f50d81d64fff2 (diff)
Switch amd and spamlogd to rc scripts and make sure that the
rc_pre() functions are returning correctly. This change also simplyfies the changes because false || return 1 can be replaced with false if that's the last call. thanks halex@!
Diffstat (limited to 'etc/rc.d/ypserv')
-rw-r--r--etc/rc.d/ypserv5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/rc.d/ypserv b/etc/rc.d/ypserv
index 6c189e036bf..3a94c5f6219 100644
--- a/etc/rc.d/ypserv
+++ b/etc/rc.d/ypserv
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: ypserv,v 1.2 2011/07/07 18:23:17 robert Exp $
+# $OpenBSD: ypserv,v 1.3 2011/07/08 02:15:34 robert Exp $
daemon="/usr/sbin/ypserv"
@@ -9,8 +9,7 @@ daemon="/usr/sbin/ypserv"
rc_reload=NO
rc_pre() {
- [ X"`domainname`" != X"" -a -d /var/yp/`domainname` ] || \
- return 1
+ [ X"`domainname`" != X"" -a -d /var/yp/`domainname` ]
}
rc_cmd $1