diff options
author | Bill Nottingham <notting@redhat.com> | 2001-01-30 22:30:00 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-01-30 22:30:00 +0000 |
commit | 2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd (patch) | |
tree | 9f6fad4a0ea31a4ec6407ea4b2803a306dfc8f8d | |
parent | a996c36f7e7078b3f9f243a27b14cd160b510d71 (diff) | |
download | initscripts-2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd.tar initscripts-2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd.tar.gz initscripts-2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd.tar.bz2 initscripts-2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd.tar.xz initscripts-2e41aa2e71dbcb3dd7c5c0dfe06670a32ebab2cd.zip |
don't barf errors if files aren't there (say, rc.local)
-rwxr-xr-x | rc.d/init.d/killall | 4 |
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 |