Added command line options to the install process to overwrite or preserve the existing config files. Added the pypo-start/stop and recorder-start/stop symlinks to /usr/bin. Renamed pypo-start.py to airtime-pypo-start. Renamed pypo-stop.py to airtime-pypo-stop. Renamed recorder-start.py to airtime-show-recorder-start. Renamed recorder-stop.py to airtime-show-recorder-stop. Renamed testrecordscript.py to recorder.py
19 lines
415 B
Python
Executable file
19 lines
415 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")
|
|
|
|
print "Starting daemontool script pypo-liquidsoap"
|
|
os.system("svc -u /etc/service/pypo-liquidsoap")
|
|
|
|
except Exception, e:
|
|
print "exception:" + str(e)
|