aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2006-09-21 17:17:08 +0000
committerBill Nottingham <notting@redhat.com>2006-09-21 17:17:08 +0000
commit2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526 (patch)
treee503e67e5ba741b8455b7eb13b9080dbbf48f9e2 /rc.d
parentbd0731668e9e1ce1e9378596b00073a94632a375 (diff)
downloadinitscripts-2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526.tar
initscripts-2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526.tar.gz
initscripts-2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526.tar.bz2
initscripts-2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526.tar.xz
initscripts-2ec4dc57fc2d5edb4e14bf7c757a68df8dcd5526.zip
better check here (#190989, #110761)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc4
1 files changed, 2 insertions, 2 deletions
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