set start retries in supervisord to unlimited to avoid broken backend if app-service instance containing the database is later running than the API, in rare cases this can happen though the service instance is started before the API instances
This commit is contained in:
@ -165,7 +165,8 @@ if [[ -e /etc/os-release ]]; then
|
||||
faafo_api="
|
||||
[program:faafo_api]
|
||||
command=$(which faafo-api)
|
||||
priority=10"
|
||||
priority=10
|
||||
startretries=0"
|
||||
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
|
||||
@ -181,7 +182,8 @@ priority=10"
|
||||
faafo_worker="
|
||||
[program:faafo_worker]
|
||||
command=$(which faafo-worker)
|
||||
priority=20"
|
||||
priority=20
|
||||
startretries=0"
|
||||
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
|
||||
|
@ -159,7 +159,8 @@ if [[ -e /etc/os-release ]]; then
|
||||
faafo_api="
|
||||
[program:faafo_api]
|
||||
command=$(which faafo-api)
|
||||
priority=10"
|
||||
priority=10
|
||||
startretries=0"
|
||||
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
|
||||
@ -175,7 +176,8 @@ priority=10"
|
||||
faafo_worker="
|
||||
[program:faafo_worker]
|
||||
command=$(which faafo-worker)
|
||||
priority=20"
|
||||
priority=20
|
||||
startretries=0"
|
||||
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
|
||||
|
Reference in New Issue
Block a user