CC-3575: Use invoke-rc.d to start and stop services, rather than calling init scripts directly

-fixed
This commit is contained in:
Martin Konecny 2012-04-05 15:09:20 -04:00
parent b00e74e831
commit 3611f1071d
6 changed files with 11 additions and 11 deletions

View file

@ -123,13 +123,13 @@ fi
#We don't want any of our python services running if we are doing an upgrade/reinstall.
#They will be automatically restarted later on.
if [ -e /etc/init.d/airtime-media-monitor ]; then
/etc/init.d/airtime-media-monitor stop > /dev/null 2>&1
invoke-rc.d airtime-media-monitor stop > /dev/null 2>&1
fi
if [ -e /etc/init.d/airtime-playout ]; then
/etc/init.d/airtime-playout stop > /dev/null 2>&1
invoke-rc.d airtime-playout stop > /dev/null 2>&1
fi
if [ -e /etc/init.d/airtime-show-recorder ]; then
/etc/init.d/airtime-show-recorder stop > /dev/null 2>&1
invoke-rc.d airtime-show-recorder stop > /dev/null 2>&1
fi

View file

@ -46,7 +46,7 @@ fi
# so we can ensure they can register with monit to monitor them when they start.
# If monit is already running, this step is still useful as we need monit to
# reload its config files.
/etc/init.d/monit restart
invoke-rc.d monit restart
#give monit some time to boot-up before issuing commands
sleep 1