From 8aaff3f8b8f3be475657e99b8faa1a8c8f4257d0 Mon Sep 17 00:00:00 2001 From: Kurt J. Bosch Date: Mon, 15 Feb 2010 15:28:39 +0100 Subject: [PATCH 1/2] Always shutdown daemons, regardless of runlevel in rc.single too --- rc.single | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rc.single b/rc.single index 751fca9..e8b6f08 100755 --- a/rc.single +++ b/rc.single @@ -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" -- 1.6.6.1