cc-2055: switch to init.d
-Change all python apps to log directly to file -change airtime-pypo to airtime-playback -fix airtime install started/completed message bumpers
This commit is contained in:
parent
c05c2f1e28
commit
79e24e5af5
26 changed files with 75 additions and 269 deletions
17
python_apps/pypo/airtime-playout
Executable file
17
python_apps/pypo/airtime-playout
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
pypo_user="pypo"
|
||||
|
||||
# Location of pypo_cli.py Python script
|
||||
pypo_path="/usr/lib/airtime/pypo/bin/"
|
||||
api_client_path="/usr/lib/airtime/pypo/"
|
||||
pypo_script="pypo-cli.py"
|
||||
cd ${pypo_path}
|
||||
exec 2>&1
|
||||
|
||||
export HOME="/var/tmp/airtime/pypo/"
|
||||
export PYTHONPATH=${api_client_path}:$PYTHONPATH
|
||||
|
||||
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
||||
exec python -u ${pypo_path}${pypo_script}
|
||||
# EOF
|
Loading…
Add table
Add a link
Reference in a new issue