-streamlined the install script. Any previous running processes are shutdown immediately.

This commit is contained in:
mkonecny 2011-01-19 14:59:22 -05:00
parent 6eb43e7478
commit 7a11f2aa41
3 changed files with 20 additions and 13 deletions

View file

@ -10,13 +10,13 @@ if os.geteuid() != 0:
try:
print "Starting daemontool script pypo-fetch"
os.system("svc -t /etc/service/pypo-fetch")
os.system("svc -u /etc/service/pypo-fetch")
print "Starting daemontool script pypo-push"
os.system("svc -t /etc/service/pypo-push")
os.system("svc -u /etc/service/pypo-push")
print "Starting daemontool script pypo-liquidsoap"
os.system("svc -t /etc/service/pypo-liquidsoap")
os.system("svc -u /etc/service/pypo-liquidsoap")
except Exception, e:
print "exception:" + str(e)