diff options
-rwxr-xr-x | rc.shutdown | 2 | ||||
-rwxr-xr-x | rc.single | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/rc.shutdown b/rc.shutdown index ef13dec..39f762e 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -26,7 +26,7 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Find daemons NOT in the DAEMONS array. Shut these down first if [ -d /var/run/daemons ]; then for daemon in $(/bin/ls -1t /var/run/daemons); do - if ! in_array $daemon ${DAEMONS}; then + if ! in_array $daemon ${DAEMONS[@]}; then stop_daemon $daemon fi done @@ -10,7 +10,7 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then # Find daemons NOT in the DAEMONS array. Shut these down first if [ -d /var/run/daemons ]; then for daemon in $(/bin/ls -1t /var/run/daemons); do - if ! in_array $daemon ${DAEMONS}; then + if ! in_array $daemon ${DAEMONS[@]}; then stop_daemon $daemon fi done |