From f0fb8b5bb61c60c6c12368ef9a304f442c06f30e Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Fri, 8 Jul 2011 02:15:35 +0000 Subject: 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@! --- etc/rc.d/ypserv | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'etc/rc.d/ypserv') 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 -- cgit v1.2.3