From fa73767d19ea505ec32533b8856122968207db2f Mon Sep 17 00:00:00 2001 From: Anton Fiuman Date: Sun, 25 May 2008 00:55:56 +0200 Subject: Allow users to ovverride daemon start and stop in rc.multi and rc.shutdown Signed-off-by: Anton Fiuman --- rc.shutdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.shutdown') diff --git a/rc.shutdown b/rc.shutdown index 024a899..59f6e25 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -27,14 +27,14 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then let i=${#DAEMONS[@]} while [ $i -ge 0 ]; do if [ "${DAEMONS[$i]:0:1}" != '!' ]; then - ck_daemon ${DAEMONS[$i]#@} || /etc/rc.d/${DAEMONS[$i]#@} stop + ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@} fi let i=i-1 done # find any leftover daemons and shut them down in reverse order if [ -d /var/run/daemons ]; then for daemon in $(/bin/ls -1t /var/run/daemons); do - /etc/rc.d/$daemon stop + stop_daemon $daemon done fi fi -- cgit v1.2.3