From f959f0f17db1c03dced4550b17a8d49aed3cf63e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 19 Nov 2021 18:09:51 +0100 Subject: [PATCH] Don't quit when supervisor crashes --- start.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 3354ee0..6fdee74 100755 --- a/start.sh +++ b/start.sh @@ -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