From 34523e8ec997dd55f6d49ae92d87fdcf47221eb4 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 28 May 2012 14:27:44 -0400 Subject: [PATCH] don't start liquidsoap if liquidsoap.cfg DNE --- python_apps/pypo/airtime-liquidsoap | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python_apps/pypo/airtime-liquidsoap b/python_apps/pypo/airtime-liquidsoap index e36f1c73a..d24359517 100755 --- a/python_apps/pypo/airtime-liquidsoap +++ b/python_apps/pypo/airtime-liquidsoap @@ -11,6 +11,11 @@ ls_param="/usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq" exec 2>&1 +while [ ! -e /etc/airtime/liquidsoap.cfg ]; do + echo "/etc/airtime/liquidsoap.cfg does not exist." + sleep 1 +done + cd /usr/lib/airtime/pypo/bin/liquidsoap_scripts export PYTHONPATH=${api_client_path}