From e90a5063a4d1fee87496b53d921a590957e859b4 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Sat, 17 Jan 2004 11:19:01 +0000 Subject: [PATCH] Make conform to general rc.d style. --- etc/rc.d/syslogd | 3 +-- etc/rc.d/ypserv | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/etc/rc.d/syslogd b/etc/rc.d/syslogd index 30a0b0a48e7f..6e0109ffc6a9 100755 --- a/etc/rc.d/syslogd +++ b/etc/rc.d/syslogd @@ -13,14 +13,13 @@ name="syslogd" rcvar=`set_rcvar` +pidfile="/var/run/syslog.pid" command="/usr/sbin/${name}" required_files="/etc/syslog.conf" start_precmd="syslogd_precmd" extra_commands="reload" _sockfile="/var/run/syslogd.sockets" - -pidfile="/var/run/syslog.pid" evalargs="rc_flags=\"\`set_socketlist\` \$rc_flags\"" altlog_proglist="named" diff --git a/etc/rc.d/ypserv b/etc/rc.d/ypserv index f13935c80c2c..c5c92e5b1a23 100755 --- a/etc/rc.d/ypserv +++ b/etc/rc.d/ypserv @@ -11,14 +11,14 @@ . /etc/rc.subr name="ypserv" +rcvar="nis_server_enable" command="/usr/sbin/${name}" -start_precmd="ypserv_precmd" +start_precmd="ypserv_prestart" load_rc_config $name -rcvar="nis_server_enable" command_args="${nis_server_flags}" -ypserv_precmd() +ypserv_prestart() { if ! checkyesno rpcbind_enable && \ ! /etc/rc.d/rpcbind forcestatus 1>/dev/null 2>&1