diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-30 14:52:57 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-30 14:52:57 +0000 |
commit | 71dba6c399c18c4cc9550298f2811b524d8eb07d (patch) | |
tree | 91fe6aa8fe5307bff8fad4a274183601b4f9bc3a /rc.d/init.d/killall | |
parent | 18294313010d07a99e035d86a6086867327e1799 (diff) | |
download | initscripts-71dba6c399c18c4cc9550298f2811b524d8eb07d.tar initscripts-71dba6c399c18c4cc9550298f2811b524d8eb07d.tar.gz initscripts-71dba6c399c18c4cc9550298f2811b524d8eb07d.tar.bz2 initscripts-71dba6c399c18c4cc9550298f2811b524d8eb07d.tar.xz initscripts-71dba6c399c18c4cc9550298f2811b524d8eb07d.zip |
warn if there's a service we can't kill.
Diffstat (limited to 'rc.d/init.d/killall')
-rwxr-xr-x | rc.d/init.d/killall | 6 |
1 files changed, 6 insertions, 0 deletions
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 |