aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/killall
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-12-19 15:57:03 +0200
committerBill Nottingham <notting@redhat.com>2010-01-12 17:09:10 -0500
commit265989c6fce9523b46aa9020f241ab2450307aa4 (patch)
tree168538aa78bb8280848af13978f56fef5caf2c05 /rc.d/init.d/killall
parentd4c58cd1c84f99030c3f4778d2c64377838e0634 (diff)
downloadinitscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.gz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.bz2
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.tar.xz
initscripts-265989c6fce9523b46aa9020f241ab2450307aa4.zip
Eliminate bunch of unnecessary stat calls and command invocations.
Diffstat (limited to 'rc.d/init.d/killall')
-rwxr-xr-xrc.d/init.d/killall6
1 files changed, 3 insertions, 3 deletions
diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall
index d22982ef..c1169b10 100755
--- a/rc.d/init.d/killall
+++ b/rc.d/init.d/killall
@@ -24,10 +24,10 @@ for i in /var/lock/subsys/* ; do
[ $subsys = network ] && continue
# Bring the subsystem down.
- if [ -f /etc/init.d/$subsys.init ]; then
- /etc/init.d/$subsys.init stop
- elif [ -f /etc/init.d/$subsys ]; then
+ if [ -f /etc/init.d/$subsys ]; then
/etc/init.d/$subsys stop
+ elif [ -f /etc/init.d/$subsys.init ]; then
+ /etc/init.d/$subsys.init stop
else
rm -f "$i"
fi