sintonia/python_apps/media-monitor/airtime-media-monitor
martin 79e24e5af5 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
2011-06-02 18:07:47 -04:00

17 lines
411 B
Bash
Executable file

#!/bin/sh
# Location of pypo_cli.py Python script
media_monitor_path="/usr/lib/airtime/media-monitor/"
media_monitor_script="MediaMonitor.py"
api_client_path="/usr/lib/airtime/pypo/"
cd ${media_monitor_path}
exec 2>&1
export PYTHONPATH=${api_client_path}
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
python -u ${media_monitor_path}${media_monitor_script}
# EOF