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:
parent
38b01ea43f
commit
c0144fb0be
|
@ -11,12 +11,13 @@ if os.geteuid() != 0:
|
||||||
try:
|
try:
|
||||||
print "Stopping daemontool script pypo-fetch"
|
print "Stopping daemontool script pypo-fetch"
|
||||||
os.system("svc -dx /etc/service/pypo-fetch 2>/dev/null")
|
os.system("svc -dx /etc/service/pypo-fetch 2>/dev/null")
|
||||||
|
|
||||||
print "Stopping daemontool script pypo-push"
|
print "Stopping daemontool script pypo-push"
|
||||||
os.system("svc -dx /etc/service/pypo-push 2>/dev/null")
|
os.system("svc -dx /etc/service/pypo-push 2>/dev/null")
|
||||||
|
|
||||||
print "Stopping daemontool script pypo-liquidsoap"
|
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 2>/dev/null")
|
||||||
|
os.system("killall liquidsoap")
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print "exception:" + str(e)
|
print "exception:" + str(e)
|
||||||
|
|
Loading…
Reference in New Issue