Respawn liquidsoap and pypo indefinitely if they fail to launch. Throttled it though.

This commit is contained in:
Albert Santoni 2015-12-04 15:56:06 -05:00
parent 91e1252b86
commit a26f1a70e3
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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