From 1f4c08b1a3fd12e5fb785702275de6c4ae74c410 Mon Sep 17 00:00:00 2001 From: naomiaro Date: Wed, 23 Mar 2011 00:33:46 -0400 Subject: [PATCH] CC-1630 : Automatic recording of shows need to run show recorder as root to have access to soundcard using daemontools --- python_apps/show-recorder/install/recorder-daemontools.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python_apps/show-recorder/install/recorder-daemontools.sh b/python_apps/show-recorder/install/recorder-daemontools.sh index c36996b40..d9cec7146 100644 --- a/python_apps/show-recorder/install/recorder-daemontools.sh +++ b/python_apps/show-recorder/install/recorder-daemontools.sh @@ -8,7 +8,5 @@ echo "*** Daemontools: starting daemon" cd ${recorder_path} exec 2>&1 # Note the -u when calling python! we need it to get unbuffered binary stdout and stderr -exec setuidgid ${recorder_user} \ - python -u ${recorder_path}${recorder_script} \ - -f +exec sudo python -u ${recorder_path}${recorder_script} -f # EOF