Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
emmett1 committed Jan 6, 2018
1 parent af8b8f3 commit e6dd9a1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion rc.multi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions rc.shutdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions rc.single
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6dd9a1

Please sign in to comment.