-fixed some problems with recorder not working on ubuntu 10.10
This commit is contained in:
parent
5b3cd9ea0d
commit
10559a3ff0
2 changed files with 10 additions and 4 deletions
|
@ -1,12 +1,15 @@
|
|||
#!/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"
|
||||
echo "*** Daemontools: starting daemon"
|
||||
echo $PATH
|
||||
echo $TERM
|
||||
cd ${recorder_path}
|
||||
exec 2>&1
|
||||
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
||||
exec sudo python -u ${recorder_path}${recorder_script} -f
|
||||
python -u ${recorder_path}${recorder_script}
|
||||
# EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue