-We don't want any of our python services running at install time. Disable them early on.

This commit is contained in:
Martin Konecny 2012-02-12 11:44:23 -05:00
parent 8493180243
commit 0424a7f1d1
6 changed files with 18 additions and 8 deletions

View file

@ -123,6 +123,18 @@ elif [ "$result" -eq "3" ]; then
exit 1
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
fi
if [ -e /etc/init.d/airtime-playout ]; then
/etc/init.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
fi
#export these variables to make them available in sub bash scripts
export DO_UPGRADE