sintonia/python_apps/show-recorder/install/recorder-uninitialize.py

16 lines
327 B
Python

from subprocess import Popen
import os
import sys
if os.geteuid() != 0:
print "Please run this as root."
sys.exit(1)
try:
print "Waiting for show-recorder processes to stop..."
p = Popen("/etc/init.d/airtime-show-recorder stop", shell=True)
sts = os.waitpid(p.pid, 0)[1]
except Exception, e:
print e