aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrc.shutdown2
-rwxr-xr-xrc.single2
2 files changed, 2 insertions, 2 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 85ad835..1143c16 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -24,7 +24,7 @@ fi
if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
# Shutdown daemons
- let i=${#DAEMONS[@]}
+ let i=${#DAEMONS[@]}-1
while [ $i -ge 0 ]; do
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then
ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}
diff --git a/rc.single b/rc.single
index e0cfbe8..6eaf063 100755
--- a/rc.single
+++ b/rc.single
@@ -8,7 +8,7 @@
if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then
# Shutdown daemons
- let i=${#DAEMONS[@]}
+ let i=${#DAEMONS[@]}-1
while [ $i -ge 0 ]; do
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then
ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}