make sure we explicitly need to tell Airtime services to start
This commit is contained in:
parent
931246907f
commit
b9c6eab39c
|
@ -203,6 +203,7 @@ if [ "$DO_UPGRADE" -eq "0" ]; then
|
||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
export airtime_service_start='t'
|
||||||
$SCRIPTPATH/include/airtime-copy-files.sh
|
$SCRIPTPATH/include/airtime-copy-files.sh
|
||||||
$SCRIPTPATH/include/airtime-initialize.sh $@
|
$SCRIPTPATH/include/airtime-initialize.sh $@
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ try:
|
||||||
subprocess.call("update-rc.d airtime-media-monitor defaults >/dev/null 2>&1", shell=True)
|
subprocess.call("update-rc.d airtime-media-monitor defaults >/dev/null 2>&1", shell=True)
|
||||||
|
|
||||||
#Start media-monitor daemon
|
#Start media-monitor daemon
|
||||||
print "* Waiting for media-monitor processes to start..."
|
if "airtime_service_start" in os.environ and os.environ["airtime_service_start"] == "t":
|
||||||
|
print "* Waiting for media-monitor processes to start..."
|
||||||
subprocess.call("invoke-rc.d airtime-media-monitor start-no-monit", shell=True)
|
subprocess.call("invoke-rc.d airtime-media-monitor start-no-monit", shell=True)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
print e
|
||||||
|
|
|
@ -128,8 +128,9 @@ try:
|
||||||
print "* Clearing previous pypo cache"
|
print "* Clearing previous pypo cache"
|
||||||
subprocess.call("rm -rf '/var/tmp/airtime/pypo/cache/scheduler/*' >/dev/null 2>&1", shell=True)
|
subprocess.call("rm -rf '/var/tmp/airtime/pypo/cache/scheduler/*' >/dev/null 2>&1", shell=True)
|
||||||
|
|
||||||
print "* Waiting for pypo processes to start..."
|
if "airtime_service_start" in os.environ and os.environ["airtime_service_start"] == "t":
|
||||||
subprocess.call("invoke-rc.d airtime-playout start-no-monit > /dev/null 2>&1", shell=True)
|
print "* Waiting for pypo processes to start..."
|
||||||
|
subprocess.call("invoke-rc.d airtime-playout start-no-monit > /dev/null 2>&1", shell=True)
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
print e
|
||||||
|
|
Loading…
Reference in New Issue