CC-4974: Watchdog for ensuring Liquidsoap does not consume more than 1GB of memory
-changed to 600MB for now. May lower even more later
This commit is contained in:
parent
15f2533225
commit
fbaba59dca
4 changed files with 17 additions and 5 deletions
|
@ -20,8 +20,11 @@ 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
|
||||
touch /var/run/airtime-liquidsoap.pid
|
||||
chown pypo:pypo /var/run/airtime-liquidsoap.pid
|
||||
|
||||
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
|
||||
--pidfile /var/run/airtime-liquidsoap.pid --nicelevel -15 --startas $DAEMON
|
||||
|
||||
monit monitor airtime-liquidsoap >/dev/null 2>&1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue