cc-2278: show-recorder not working under natty.

-Now works under natty. Needs to be tested on 10.04 and 10.10!
This commit is contained in:
martin 2011-05-17 13:43:35 -04:00
parent 9afab251c5
commit cf3e525a0f
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -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)