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)