CC-1826 Restarting Pulseaudio kills liquidsoap player

Daemontools doesnt do an adequate job of killing the liquidsoap process.
Added a "killall" to make sure the process is really killed.
This commit is contained in:
Paul Baranowski 2011-01-28 18:29:53 -05:00
parent 38b01ea43f
commit c0144fb0be
1 changed files with 2 additions and 1 deletions

View File

@ -11,12 +11,13 @@ if os.geteuid() != 0:
try:
print "Stopping daemontool script pypo-fetch"
os.system("svc -dx /etc/service/pypo-fetch 2>/dev/null")
print "Stopping daemontool script pypo-push"
os.system("svc -dx /etc/service/pypo-push 2>/dev/null")
print "Stopping daemontool script pypo-liquidsoap"
os.system("svc -dx /etc/service/pypo-liquidsoap 2>/dev/null")
os.system("killall liquidsoap")
except Exception, e:
print "exception:" + str(e)