sintonia/python_apps/pypo/airtime-pypo-start
martin 4eb8a7f394 CC-2325: no audio after running airtime-pypo-stop/start
-seems to work after re-enabling multilog.
2011-05-27 15:51:09 -04:00

21 lines
522 B
Python
Executable file

#!/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 "Starting daemontool script pypo"
os.system("svc -u /etc/service/pypo")
os.system("svc -u /etc/service/pypo/log")
print "Starting daemontool script pypo-liquidsoap"
os.system("svc -u /etc/service/pypo-liquidsoap")
os.system("svc -u /etc/service/pypo-liquidsoap/log")
except Exception, e:
print "exception:" + str(e)