sintonia/python_apps/show-recorder/install/recorder-start.py
naomiaro f592254246 CC-1630 : Automatic recording of shows
scripts to install recorder using daemon tools.
haven't tested without pulse audio yet.
2011-03-22 18:20:22 -04:00

16 lines
306 B
Python

#!/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)