Respawn liquidsoap and pypo indefinitely if they fail to launch. Throttled it though.
This commit is contained in:
parent
91e1252b86
commit
a26f1a70e3
|
@ -5,6 +5,10 @@ start on runlevel [2345]
|
||||||
stop on runlevel [!2345]
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
|
# Respawn it indefinitely
|
||||||
|
respawn limit unlimited
|
||||||
|
# Wait 3 seconds before spawning it again though, to throttle CPU.
|
||||||
|
post-stop exec sleep 3
|
||||||
|
|
||||||
setuid WEB_USER
|
setuid WEB_USER
|
||||||
setgid WEB_USER
|
setgid WEB_USER
|
||||||
|
|
|
@ -5,6 +5,10 @@ start on runlevel [2345]
|
||||||
stop on runlevel [!2345]
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
|
# Respawn it indefinitely
|
||||||
|
respawn limit unlimited
|
||||||
|
# Wait 3 seconds before spawning it again though, to throttle CPU.
|
||||||
|
post-stop exec sleep 3
|
||||||
|
|
||||||
setuid WEB_USER
|
setuid WEB_USER
|
||||||
setgid WEB_USER
|
setgid WEB_USER
|
||||||
|
@ -12,4 +16,4 @@ setgid WEB_USER
|
||||||
env LANG='en_US.UTF-8'
|
env LANG='en_US.UTF-8'
|
||||||
env LC_ALL='en_US.UTF-8'
|
env LC_ALL='en_US.UTF-8'
|
||||||
|
|
||||||
exec airtime-playout
|
exec airtime-playout
|
||||||
|
|
Loading…
Reference in New Issue