CC-4313Make sure any service can re-create its log file if the file is removed
-fixed
This commit is contained in:
parent
4848717d4d
commit
ec4343deb0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue