From 78f1af4fcbcc1193db5e9db036359e14cc98afd9 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 3 Feb 1999 19:34:29 +0000 Subject: more initlog changes; wait a little longer for kill -TERM --- rc.d/rc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'rc.d/rc') diff --git a/rc.d/rc b/rc.d/rc index 05f63392..d84b219e 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -51,7 +51,11 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then [ ! -f /var/lock/subsys/${subsys}.init ] && continue # Bring the subsystem down. - $i stop + if [ egrep -q "(killproc|action)" $i ]; then + $i stop + else + action "Stopping $subsys" $i stop + fi done # Now run the START scripts. @@ -86,6 +90,10 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then } # Bring the subsystem up. - $i start + if [ egrep -q "(daemon|action)" $i ]; then + $i start + else + action "Starting $subsys" $i start + fi done fi -- cgit