2010-12-17 20:15:53 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
if os.geteuid() != 0:
|
|
|
|
print "Please run this as root."
|
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
try:
|
|
|
|
print "Stopping daemontool script pypo-fetch"
|
2011-01-19 20:59:22 +01:00
|
|
|
os.system("svc -dx /etc/service/pypo-fetch 2>/dev/null")
|
2011-01-29 00:29:53 +01:00
|
|
|
|
2010-12-17 20:15:53 +01:00
|
|
|
print "Stopping daemontool script pypo-push"
|
2011-01-19 20:59:22 +01:00
|
|
|
os.system("svc -dx /etc/service/pypo-push 2>/dev/null")
|
2010-12-17 20:15:53 +01:00
|
|
|
|
|
|
|
print "Stopping daemontool script pypo-liquidsoap"
|
2011-01-19 20:59:22 +01:00
|
|
|
os.system("svc -dx /etc/service/pypo-liquidsoap 2>/dev/null")
|
2011-01-29 00:29:53 +01:00
|
|
|
os.system("killall liquidsoap")
|
2010-12-17 20:15:53 +01:00
|
|
|
|
|
|
|
except Exception, e:
|
2011-01-19 20:59:22 +01:00
|
|
|
print "exception:" + str(e)
|