CC-2080: Turn pypo-fetch and pypo-push into threads of the same process

Fixed install scripts to remove old instances of pypo properly
This commit is contained in:
martin 2011-03-21 10:58:30 -04:00
parent d9431f95b4
commit b922e42918
3 changed files with 18 additions and 7 deletions

View file

@ -10,10 +10,15 @@ if os.geteuid() != 0:
try:
print "Stopping daemontool script pypo"
os.system("svc -dx /etc/service/pypo 2>/dev/null")
os.system("svc -dx /etc/service/pypo 1>/dev/null 2>&1")
if os.path.exists("/etc/service/pypo-fetch"):
os.system("svc -dx /etc/service/pypo-fetch 1>/dev/null 2>&1")
if os.path.exists("/etc/service/pypo-push"):
os.system("svc -dx /etc/service/pypo-push 1>/dev/null 2>&1")
print "Stopping daemontool script pypo-liquidsoap"
os.system("svc -dx /etc/service/pypo-liquidsoap 2>/dev/null")
os.system("svc -dx /etc/service/pypo-liquidsoap 1>/dev/null 2>&1")
os.system("killall liquidsoap")
except Exception, e: