aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
committerBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
commite8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893 (patch)
tree3b299a1b638cf16e4d9574318b683851395f6e4c /rc.d/rc
parent2aa519f20375260f6e22d408e8bce7fabf2140b6 (diff)
downloadinitscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.gz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.bz2
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.xz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.zip
bugfixes...
Diffstat (limited to 'rc.d/rc')
-rwxr-xr-xrc.d/rc12
1 files changed, 8 insertions, 4 deletions
diff --git a/rc.d/rc b/rc.d/rc
index d84b219e..449df6cb 100755
--- a/rc.d/rc
+++ b/rc.d/rc
@@ -51,10 +51,10 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then
[ ! -f /var/lock/subsys/${subsys}.init ] && continue
# Bring the subsystem down.
- if [ egrep -q "(killproc|action)" $i ]; then
+ if egrep -q "(killproc |action )" $i ; then
$i stop
else
- action "Stopping $subsys" $i stop
+ action -n "Stopping $subsys" $i stop
fi
done
@@ -90,10 +90,14 @@ if [ -d /etc/rc.d/rc$runlevel.d ]; then
}
# Bring the subsystem up.
- if [ egrep -q "(daemon|action)" $i ]; then
+ if egrep -q "(daemon |action )" $i ; then
$i start
else
- action "Starting $subsys" $i start
+ if [ "$subsys" = "halt" ] || [ "$subsys" = "reboot" ]; then
+ $i start
+ else
+ action -n "Starting $subsys" $i start
+ fi
fi
done
fi