CC-1630 : Automatic recording of shows
scripts to install recorder using daemon tools. haven't tested without pulse audio yet.
This commit is contained in:
parent
8ffcd75682
commit
f592254246
11 changed files with 240 additions and 60 deletions
14
python_apps/show-recorder/install/recorder-daemontools.sh
Normal file
14
python_apps/show-recorder/install/recorder-daemontools.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
recorder_user="pypo"
|
||||
export HOME="/home/pypo/"
|
||||
# Location of pypo_cli.py Python script
|
||||
recorder_path="/opt/recorder/bin/"
|
||||
recorder_script="testrecordscript.py"
|
||||
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
|
||||
exec setuidgid ${recorder_user} \
|
||||
python -u ${recorder_path}${recorder_script} \
|
||||
-f
|
||||
# EOF
|
Loading…
Add table
Add a link
Reference in a new issue