parent
d2dc2ea6a5
commit
ed0f24831d
|
@ -8,5 +8,8 @@ echo "*** Daemontools: starting liquidsoap"
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
|
|
||||||
cd /usr/lib/airtime/pypo/bin/scripts
|
cd /usr/lib/airtime/pypo/bin/scripts
|
||||||
sudo PYTHONPATH=${api_client_path} -u ${ls_user} ${ls_path} ${ls_param}
|
|
||||||
|
export PYTHONPATH=${api_client_path}
|
||||||
|
su ${ls_user} -c "${ls_path} ${ls_param}"
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -14,5 +14,8 @@ echo "*** Daemontools: starting daemon"
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
|
# 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}
|
export PYTHONPATH=${api_client_path}
|
||||||
|
su ${recorder_user} -c "python -u ${recorder_path}${recorder_script}"
|
||||||
|
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
Loading…
Reference in New Issue