-We don't want any of our python services running at install time. Disable them early on.
This commit is contained in:
parent
8493180243
commit
0424a7f1d1
6 changed files with 18 additions and 8 deletions
|
@ -104,6 +104,7 @@ try:
|
|||
|
||||
#restart airtime-playout
|
||||
print "* Waiting for pypo processes to start..."
|
||||
"""
|
||||
if os.environ["liquidsoap_keep_alive"] == "f":
|
||||
print " * Restarting any previous Liquidsoap instances"
|
||||
p = Popen("/etc/init.d/airtime-playout stop > /dev/null 2>&1", shell=True)
|
||||
|
@ -112,6 +113,7 @@ try:
|
|||
print " * Keeping any previous Liquidsoap instances running"
|
||||
p = Popen("/etc/init.d/airtime-playout pypo-stop > /dev/null 2>&1", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
"""
|
||||
p = Popen("/etc/init.d/airtime-playout start-no-monit > /dev/null 2>&1", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
|
||||
|
|
|
@ -208,8 +208,6 @@ class PypoFetch(Thread):
|
|||
# restarting pypo.
|
||||
# we could just restart liquidsoap but it take more time somehow.
|
||||
logger.info("Restarting pypo...")
|
||||
#p = Popen("/etc/init.d/airtime-playout restart >/dev/null 2>&1", shell=True)
|
||||
#sts = os.waitpid(p.pid, 0)[1]
|
||||
sys.exit(0)
|
||||
else:
|
||||
logger.info("No change detected in setting...")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue