CC-1630 : Automatic recording of shows
scripts to install recorder using daemon tools. haven't tested without pulse audio yet.
This commit is contained in:
parent
8ffcd75682
commit
f592254246
11 changed files with 240 additions and 60 deletions
16
python_apps/show-recorder/install/recorder-start.py
Normal file
16
python_apps/show-recorder/install/recorder-start.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/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 recorder"
|
||||
os.system("svc -u /etc/service/recorder")
|
||||
|
||||
except Exception, e:
|
||||
print "exception:" + str(e)
|
Loading…
Add table
Add a link
Reference in a new issue