diff --git a/etc/rc.d/devd b/etc/rc.d/devd index c282f3b1d0a2..50c8a17d59dc 100644 --- a/etc/rc.d/devd +++ b/etc/rc.d/devd @@ -12,7 +12,7 @@ name="devd" rcvar=`set_rcvar` -command="/sbin/devd" +command="/sbin/${name}" load_rc_config $name run_rc_command "$1" diff --git a/etc/rc.d/ipmon b/etc/rc.d/ipmon index 271b99dbc733..00d61a5aace3 100755 --- a/etc/rc.d/ipmon +++ b/etc/rc.d/ipmon @@ -13,7 +13,7 @@ name="ipmon" rcvar=`set_rcvar` -command="/sbin/ipmon" +command="/sbin/${name}" start_precmd="ipmon_precmd" ipmon_precmd() diff --git a/etc/rc.d/newsyslog b/etc/rc.d/newsyslog index 9c4ed18aaf89..e6c00fc39a09 100755 --- a/etc/rc.d/newsyslog +++ b/etc/rc.d/newsyslog @@ -13,7 +13,7 @@ name="newsyslog" rcvar=`set_rcvar` required_files="/etc/newsyslog.conf" -command="/usr/sbin/newsyslog" +command="/usr/sbin/${name}" start_cmd="newsyslog_start" stop_cmd=":" diff --git a/etc/rc.d/powerd b/etc/rc.d/powerd index 2c0e7966e8e7..54e75d131307 100644 --- a/etc/rc.d/powerd +++ b/etc/rc.d/powerd @@ -12,7 +12,7 @@ name="powerd" rcvar=`set_rcvar` -command="/usr/sbin/powerd" +command="/usr/sbin/${name}" load_rc_config $name run_rc_command "$1" diff --git a/etc/rc.d/sendmail b/etc/rc.d/sendmail index 33b11dd1fc1c..ab7607327202 100755 --- a/etc/rc.d/sendmail +++ b/etc/rc.d/sendmail @@ -20,9 +20,9 @@ required_files="/etc/mail/${name}.cf" start_precmd="sendmail_precmd" load_rc_config $name -command=${sendmail_program:-/usr/sbin/sendmail} -pidfile=${sendmail_pidfile:-/var/run/sendmail.pid} -procname=${sendmail_procname:-/usr/sbin/sendmail} +command=${sendmail_program:-/usr/sbin/${name}} +pidfile=${sendmail_pidfile:-/var/run/${name}.pid} +procname=${sendmail_procname:-/usr/sbin/${name}} case ${sendmail_enable} in [Nn][Oo][Nn][Ee])