aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/killall6
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