CC-4313Make sure any service can re-create its log file if the file is removed

-fixed
This commit is contained in:
Martin Konecny 2012-08-29 11:04:44 -04:00
parent 4848717d4d
commit ec4343deb0
2 changed files with 5 additions and 0 deletions

View File

@ -89,6 +89,8 @@ echo "* Creating /var/log/airtime"
mkdir -p /var/log/airtime
chmod a+x /var/log/airtime
chown www-data:www-data /var/log/airtime/
chown pypo:pypo /var/log/airtime/pypo
chown pypo:pypo /var/log/airtime/pypo-liquidsoap
if [ "$web" = "t" ]; then

View File

@ -17,6 +17,9 @@ DAEMON=/usr/lib/airtime/pypo/bin/airtime-liquidsoap
PIDFILE=/var/run/airtime-liquidsoap.pid
start () {
chown pypo:pypo /var/log/airtime/pypo
chown pypo:pypo /var/log/airtime/pypo-liquidsoap
start-stop-daemon --start --background --quiet --chuid $USERID:$GROUPID \
--nicelevel -15 --make-pidfile --pidfile $PIDFILE --startas $DAEMON