Fixed issue with liquidsoap service starting as daemon, fixed logging issue in pypocli

This commit is contained in:
Duncan Sommerville 2015-01-07 14:25:24 -05:00
parent 05c2ecdb89
commit 0fef350e9d
2 changed files with 3 additions and 3 deletions

View file

@ -24,9 +24,9 @@ done
export HOME="/var/tmp/airtime/pypo/" export HOME="/var/tmp/airtime/pypo/"
if [ "$debug" = "t" ]; then if [ "$debug" = "t" ]; then
ls_path="/usr/bin/airtime-liquidsoap --verbose -f" ls_path="/usr/bin/airtime-liquidsoap --verbose -f --debug"
else else
ls_path="/usr/bin/airtime-liquidsoap --verbose -f -d" ls_path="/usr/bin/airtime-liquidsoap --verbose -f"
fi fi
export PYTHONPATH=/usr/lib/airtime/:/usr/lib/airtime/pypo/bin/:/usr/lib/airtime/std_err_override/:/usr/lib/airtime/api_clients:$PYTHONPATH export PYTHONPATH=/usr/lib/airtime/:/usr/lib/airtime/pypo/bin/:/usr/lib/airtime/std_err_override/:/usr/lib/airtime/api_clients:$PYTHONPATH

View file

@ -82,7 +82,7 @@ LIQUIDSOAP_MIN_VERSION = "1.1.1"
# configure logging # configure logging
try: try:
logging.config.fileConfig("logging.cfg") logging.config.fileConfig("%s/logging.cfg" % os.path.dirname(os.path.realpath(__file__)))
logger = logging.getLogger() logger = logging.getLogger()
LogWriter.override_std_err(logger) LogWriter.override_std_err(logger)
except Exception, e: except Exception, e: