From cf3e525a0f44beb1e781e8bf5784794e079f107e Mon Sep 17 00:00:00 2001 From: martin Date: Tue, 17 May 2011 13:43:35 -0400 Subject: [PATCH] cc-2278: show-recorder not working under natty. -Now works under natty. Needs to be tested on 10.04 and 10.10! --- python_apps/show-recorder/install/recorder-daemontools.sh | 6 ++++-- python_apps/show-recorder/recorder.py | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python_apps/show-recorder/install/recorder-daemontools.sh b/python_apps/show-recorder/install/recorder-daemontools.sh index 546f99a3e..f7409f600 100755 --- a/python_apps/show-recorder/install/recorder-daemontools.sh +++ b/python_apps/show-recorder/install/recorder-daemontools.sh @@ -15,9 +15,11 @@ exec 2>&1 # Note the -u when calling python! we need it to get unbuffered binary stdout and stderr export PYTHONPATH=${api_client_path} -#su ${recorder_user} -c "python -u ${recorder_path}${recorder_script}" -setuidgid ${recorder_user} python -u ${recorder_path}${recorder_script} +su ${recorder_user} -c "python -u ${recorder_path}${recorder_script}" + +#ecasound does not work when recorder script is called with setuidgid. +#setuidgid ${recorder_user} python -u ${recorder_path}${recorder_script} # EOF diff --git a/python_apps/show-recorder/recorder.py b/python_apps/show-recorder/recorder.py index 0421086c3..a574899ef 100644 --- a/python_apps/show-recorder/recorder.py +++ b/python_apps/show-recorder/recorder.py @@ -69,6 +69,9 @@ class ShowRecorder(Thread): args = command.split(" ") self.logger.info("starting record") + self.logger.info("command " + command) + + #Run command with arguments. Wait for command to complete, then return the returncode attribute. code = call(args) self.logger.info("finishing record, return code %s", code)