From 2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 21 Sep 2006 17:17:08 +0000 Subject: better check here (#190989, #110761) --- rc.d/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/rc b/rc.d/rc index 9fc6eba5..b654e396 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -50,7 +50,7 @@ for i in /etc/rc$runlevel.d/K* ; do || continue # Bring the subsystem down. - if LC_ALL=C egrep -q "(killproc |action )" $i ; then + if LC_ALL=C egrep -q "^..*init.d/functions" $i ; then $i stop else action $"Stopping $subsys: " $i stop @@ -78,7 +78,7 @@ for i in /etc/rc$runlevel.d/S* ; do export LC_ALL=C exec $i start fi - if LC_ALL=C egrep -q "(daemon |action |success |failure )" $i 2>/dev/null \ + if LC_ALL=C egrep -q "^..*init.d/functions" $i ; then || [ "$subsys" = "single" -o "$subsys" = "local" ]; then $i start else -- cgit v1.2.1