CC-4114: use liquidsoap shutdown() command to restart liquidsoap
-shutdown liquidsoap on install
This commit is contained in:
parent
0dd3dd506e
commit
4ad3927554
|
@ -178,6 +178,9 @@ fi
|
||||||
if [ -e /etc/init.d/airtime-playout ]; then
|
if [ -e /etc/init.d/airtime-playout ]; then
|
||||||
invoke-rc.d airtime-playout stop > /dev/null 2>&1
|
invoke-rc.d airtime-playout stop > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
if [ -e /etc/init.d/airtime-playout ]; then
|
||||||
|
invoke-rc.d airtime-liquidsoap stop > /dev/null 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
#export these variables to make them available in sub bash scripts
|
#export these variables to make them available in sub bash scripts
|
||||||
export DO_UPGRADE
|
export DO_UPGRADE
|
||||||
|
|
|
@ -213,7 +213,7 @@ class PypoFetch(Thread):
|
||||||
self.logger.info("Restarting Liquidsoap")
|
self.logger.info("Restarting Liquidsoap")
|
||||||
subprocess.call('/etc/init.d/airtime-liquidsoap restart', shell=True)
|
subprocess.call('/etc/init.d/airtime-liquidsoap restart', shell=True)
|
||||||
|
|
||||||
#Wait here until Liquidsoap has started up
|
#Wait here and poll Liquidsoap until it has started up
|
||||||
self.logger.info("Waiting for Liquidsoap to start")
|
self.logger.info("Waiting for Liquidsoap to start")
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue