aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-04-02 19:33:21 +0000
committerBill Nottingham <notting@redhat.com>2001-04-02 19:33:21 +0000
commit1f46c04c0ea19e358f64f0d137e69811de915232 (patch)
treeacb826f98fad90a60bd63dd87d7e0ee3fd377503
parent52122f7a87af088e92452c4b86656f46ba444699 (diff)
downloadinitscripts-1f46c04c0ea19e358f64f0d137e69811de915232.tar
initscripts-1f46c04c0ea19e358f64f0d137e69811de915232.tar.gz
initscripts-1f46c04c0ea19e358f64f0d137e69811de915232.tar.bz2
initscripts-1f46c04c0ea19e358f64f0d137e69811de915232.tar.xz
initscripts-1f46c04c0ea19e358f64f0d137e69811de915232.zip
don't barf errors if files aren't there (say, rc.local)
-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