CC-2721: Pypo doesn't restart when it gets new stream setting

- fixed
This commit is contained in:
James 2011-08-23 11:13:06 -04:00
parent 078aa1d05d
commit 88d3fa73be
3 changed files with 17 additions and 11 deletions

View file

@ -199,8 +199,9 @@ 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]
#p = Popen("/etc/init.d/airtime-playout restart >/dev/null 2>&1", shell=True)
#sts = os.waitpid(p.pid, 0)[1]
sys.exit()
self.process_schedule(self.schedule_data, "scheduler", False)
else:
logger.info("No change detected in setting...")