From 52e3f673d1910039a9060c9780a8278c3af3005e Mon Sep 17 00:00:00 2001 From: naomiaro Date: Wed, 23 Mar 2011 19:52:00 -0400 Subject: [PATCH] CC-1630 : Automatic recording of shows forgot to actually modify this file... now stops recorder service. --- python_apps/show-recorder/install/recorder-stop.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/python_apps/show-recorder/install/recorder-stop.py b/python_apps/show-recorder/install/recorder-stop.py index 388c0bc4b..c8eb45562 100644 --- a/python_apps/show-recorder/install/recorder-stop.py +++ b/python_apps/show-recorder/install/recorder-stop.py @@ -9,17 +9,8 @@ if os.geteuid() != 0: 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") + print "Stopping daemontool script recorder" + os.system("svc -dx /etc/service/recorder 1>/dev/null 2>&1") except Exception, e: print "exception:" + str(e)