From 71dba6c399c18c4cc9550298f2811b524d8eb07d Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 30 Sep 1999 14:52:57 +0000 Subject: warn if there's a service we can't kill. --- rc.d/init.d/killall | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall index 9d244119..ee82f217 100755 --- a/rc.d/init.d/killall +++ b/rc.d/init.d/killall @@ -3,6 +3,8 @@ # Bring down all unneeded services that are still running (there shouldn't # be any, so this is just a sanity check) +RETVAL=0 + for i in /var/lock/subsys/*; do # Check if the script is there. [ ! -f $i ] && continue @@ -15,6 +17,10 @@ for i in /var/lock/subsys/*; do /etc/rc.d/init.d/$subsys.init stop else /etc/rc.d/init.d/$subsys stop + else + echo Warning: Could not stop \"$subsys\" \(no init script\). + RETVAL=1 fi done +exit $RETVAL -- cgit v1.2.1