CC-5005: airtime-purge doesn't remove all files

-cleanup
This commit is contained in:
Martin Konecny 2013-03-06 12:26:07 -05:00
parent 2ba39bddf0
commit 8e314477c7
6 changed files with 10 additions and 80 deletions

View file

@ -6,7 +6,7 @@ if os.geteuid() != 0:
print "Please run this as root."
sys.exit(1)
try:
try:
#stop pypo and liquidsoap processes
print "Waiting for Pypo process to stop...",
try:
@ -18,12 +18,16 @@ try:
print "OK"
else:
print "Wasn't running"
print "Waiting for Liquidsoap process to stop...",
if (os.path.exists('/etc/init.d/airtime-liquidsoap')):
subprocess.call("invoke-rc.d airtime-liquidsoap stop", shell=True)
print "OK"
else:
print "Wasn't running"
subprocess.call("update-rc.d -f airtime-playout remove".split(" "))
subprocess.call("update-rc.d -f airtime-liquidsoap remove".split(" "))
except Exception, e:
print e