Don't quit when supervisor crashes
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Adam Štrauch 2021-11-19 18:09:51 +01:00
parent 2bc8867eaf
commit f959f0f17d
Signed by: cx
GPG Key ID: 018304FFA8988F8D
1 changed files with 4 additions and 1 deletions

View File

@ -146,4 +146,7 @@ if [ ! -e /srv/conf/supervisor.d/nginx.conf ]; then
su app -c "cp /opt/examples/nginx/supervisor.conf /srv/conf/supervisor.d/nginx.conf"
fi
su app -c "supervisord -n -c /etc/supervisor/supervisord.conf"
while /bin/true; do
su app -c "supervisord -n -c /etc/supervisor/supervisord.conf"
sleep 5
done