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/killall4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall
index 0aff07ac..823169e5 100755
--- a/rc.d/init.d/killall
+++ b/rc.d/init.d/killall
@@ -13,8 +13,10 @@ for i in /var/lock/subsys/*; do
# Bring the subsystem down.
if [ -f /etc/init.d/$subsys.init ]; then
/etc/init.d/$subsys.init stop
- else
+ elif [ -f /etc/init.d/$subsys ]; then
/etc/init.d/$subsys stop
+ else
+ rm -f $i
fi
done