Merge branch 'master' of dev.sourcefabric.org:campcaster
Conflicts: python_apps/show-recorder/install/recorder-daemontools.sh
This commit is contained in:
commit
d5707c514b
13 changed files with 53 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/sh
|
||||
recorder_user="pypo"
|
||||
export HOME="/home/pypo/"
|
||||
export TERM=xterm
|
||||
# Location of pypo_cli.py Python script
|
||||
recorder_path="/opt/recorder/bin/"
|
||||
recorder_script="testrecordscript.py"
|
||||
|
@ -8,8 +9,8 @@ recorder_script="testrecordscript.py"
|
|||
api_client_path="/opt/pypo/"
|
||||
|
||||
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
|
||||
|
||||
sudo PYTHONPATH=${api_client_path} -u ${recorder_user} python -u ${recorder_path}${recorder_script} -f
|
||||
# EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue