CC-2166 Packaging improvements
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
This commit is contained in:
parent
2b90008ef2
commit
173d82007f
14 changed files with 75 additions and 21 deletions
|
@ -1,25 +0,0 @@
|
|||
#!/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"
|
||||
os.system("svc -dx /etc/service/pypo 1>/dev/null 2>&1")
|
||||
|
||||
if os.path.exists("/etc/service/pypo-fetch"):
|
||||
os.system("svc -dx /etc/service/pypo-fetch 1>/dev/null 2>&1")
|
||||
if os.path.exists("/etc/service/pypo-push"):
|
||||
os.system("svc -dx /etc/service/pypo-push 1>/dev/null 2>&1")
|
||||
|
||||
print "Stopping daemontool script pypo-liquidsoap"
|
||||
os.system("svc -dx /etc/service/pypo-liquidsoap 1>/dev/null 2>&1")
|
||||
os.system("killall liquidsoap")
|
||||
|
||||
except Exception, e:
|
||||
print "exception:" + str(e)
|
Loading…
Add table
Add a link
Reference in a new issue