CC-2097 : Show-recorder: Use RabbitMQ, api_client, and the structure of pypofetch

fixing daemon tool to find logging.cfg
This commit is contained in:
naomiaro 2011-03-25 00:19:44 -04:00
parent d067cf0222
commit 091938d34e
1 changed files with 2 additions and 1 deletions

View File

@ -7,10 +7,11 @@ recorder_path="/opt/recorder/bin/"
recorder_script="testrecordscript.py" recorder_script="testrecordscript.py"
api_client_path="/opt/pypo/" api_client_path="/opt/pypo/"
cd ${recorder_path}
echo "*** Daemontools: starting daemon" echo "*** Daemontools: starting daemon"
exec 2>&1 exec 2>&1
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr # Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
sudo PYTHONPATH=${api_client_path} -u ${recorder_user} python -u ${recorder_path}${recorder_script} -f sudo PYTHONPATH=${api_client_path} -u ${recorder_user} python -u ${recorder_path}${recorder_script}
# EOF # EOF