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:
Sebastian Rieger 2022-05-16 16:09:51 +02:00
parent d3df9d4e81
commit d845403a4c
2 changed files with 8 additions and 4 deletions

View File

@ -165,7 +165,8 @@ if [[ -e /etc/os-release ]]; then
faafo_api=" faafo_api="
[program:faafo_api] [program:faafo_api]
command=$(which faafo-api) command=$(which faafo-api)
priority=10" priority=10
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
@ -181,7 +182,8 @@ priority=10"
faafo_worker=" faafo_worker="
[program:faafo_worker] [program:faafo_worker]
command=$(which faafo-worker) command=$(which faafo-worker)
priority=20" priority=20
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf

View File

@ -159,7 +159,8 @@ if [[ -e /etc/os-release ]]; then
faafo_api=" faafo_api="
[program:faafo_api] [program:faafo_api]
command=$(which faafo-api) command=$(which faafo-api)
priority=10" priority=10
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_api" | sudo tee -a /etc/supervisor/conf.d/faafo.conf
@ -175,7 +176,8 @@ priority=10"
faafo_worker=" faafo_worker="
[program:faafo_worker] [program:faafo_worker]
command=$(which faafo-worker) command=$(which faafo-worker)
priority=20" priority=20
startretries=0"
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf echo "$faafo_worker" | sudo tee -a /etc/supervisor/conf.d/faafo.conf