diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2010-02-15 15:28:39 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-02-15 16:07:57 +0100 |
commit | 5bce65c93b30d520ca9a35bb92dd87f68239b835 (patch) | |
tree | e301f9d1158a5ad89eaf4fa73d5df38644903f33 /rc.single | |
parent | 8ad9bc2a4c09f274edec77488877d7af7ce214eb (diff) |
Always shutdown daemons, regardless of runlevel in rc.single too
Diffstat (limited to 'rc.single')
-rwxr-xr-x | rc.single | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -8,7 +8,8 @@ run_hook single_start -if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then +if [ "$PREVLEVEL" != "N" ]; 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 @@ -25,9 +26,6 @@ if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then fi let i=i-1 done -fi - -if [ "$PREVLEVEL" != "N" ]; then # Terminate all processes stat_busy "Sending SIGTERM To Processes" |