diff options
-rwxr-xr-x | rc.d/init.d/killall | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rc.d/init.d/killall b/rc.d/init.d/killall index 82208730..26f2c109 100755 --- a/rc.d/init.d/killall +++ b/rc.d/init.d/killall @@ -1,21 +1,21 @@ -#!/bin/bash +#! /bin/bash # Bring down all unneeded services that are still running (there shouldn't # be any, so this is just a sanity check) -for i in /var/lock/subsys/*; do +for i in /var/lock/subsys/* ; do # Check if the script is there. - [ -f $i ] || continue + [ -f "$i" ] || continue # Get the subsystem name. subsys=${i#/var/lock/subsys/} # Bring the subsystem down. if [ -f /etc/init.d/$subsys.init ]; then - /etc/init.d/$subsys.init stop + /etc/init.d/$subsys.init stop elif [ -f /etc/init.d/$subsys ]; then - /etc/init.d/$subsys stop + /etc/init.d/$subsys stop else - rm -f $i + rm -f "$i" fi done |