ensure a proper environment everytime we restart liquidsoap

This commit is contained in:
Martin Konecny 2013-05-06 12:11:19 -04:00
parent 2eaf81d366
commit 2fc4afef68
2 changed files with 3 additions and 4 deletions

View file

@ -16,8 +16,8 @@ DAEMON=/usr/lib/airtime/pypo/bin/airtime-playout
PIDFILE=/var/run/airtime-playout.pid
start () {
chown pypo:pypo /etc/airtime
chown pypo:pypo /etc/airtime/liquidsoap.cfg
mkdir -p /var/log/airtime/pypo
start-stop-daemon --start --background --quiet --chuid $USERID:$USERID \
--make-pidfile --pidfile $PIDFILE --startas $DAEMON
}