From e6dd9a15e791781f1c140a33e04c672cd034ee77 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Sun, 7 Jan 2018 00:51:15 +0800 Subject: [PATCH] updated --- rc.multi | 1 - rc.shutdown | 3 +-- rc.single | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/rc.multi b/rc.multi index 72f5966..e405616 100755 --- a/rc.multi +++ b/rc.multi @@ -5,7 +5,6 @@ # Start daemons if [ "${#DAEMONS[@]}" -gt 0 ]; then - echo "Starting daemons:" for daemon in ${DAEMONS[@]}; do if [ -f /etc/rc.d/$daemon ]; then /etc/rc.d/$daemon start diff --git a/rc.shutdown b/rc.shutdown index aaaac02..906c924 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -7,13 +7,12 @@ msg() { echo " * $@" } -if [ "$PREVLEVEL" = "2" ]; then +if [ "$PREVLEVEL" = "5" ]; then # Stopping daemons reversely if [ "${DAEMONS[*]}" ]; then for daemon in "${DAEMONS[@]}"; do R_DAEMONS=($daemon ${R_DAEMONS[@]}) done - echo "Stopping daemons:" for daemon in "${R_DAEMONS[@]}"; do if [ -f /etc/rc.d/$daemon ]; then /etc/rc.d/$daemon stop diff --git a/rc.single b/rc.single index e3fbdae..785cec7 100755 --- a/rc.single +++ b/rc.single @@ -3,13 +3,12 @@ # Load configuration . /etc/rc.conf -if [ "$PREVLEVEL" = "2" ]; then +if [ "$PREVLEVEL" = "5" ]; then # Stopping daemons reversely if [ "${DAEMONS[*]}" ]; then for daemon in "${DAEMONS[@]}"; do R_DAEMONS=($daemon ${R_DAEMONS[@]}) done - echo "Stopping daemons:" for daemon in "${R_DAEMONS[@]}"; do if [ -f /etc/rc.d/$daemon ]; then /etc/rc.d/$daemon stop