From ebb724fef3764469914e48e0d2fbb19d32e01b5c Mon Sep 17 00:00:00 2001 From: davidfrickert Date: Thu, 11 Jan 2024 19:57:23 +0100 Subject: [PATCH] fix: Allow supervisord to exit if act_runner or docker processes error - This fixes the issue where act_runner daemon command fails, for example due to gitea instance being unavailable but supervisord process still stays running so you essentially have a zombie container. - With this fix, supervisord will exit if it detects any unexpected process exits - making so that the container will restart cleanly and not go into zombie mode. #460 --- scripts/supervisord.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/supervisord.conf b/scripts/supervisord.conf index 8c45f5b..6c88f9a 100644 --- a/scripts/supervisord.conf +++ b/scripts/supervisord.conf @@ -11,3 +11,7 @@ stdout_logfile=/dev/fd/1 stdout_logfile_maxbytes=0 redirect_stderr=true command=/opt/act/rootless.sh + +[eventlistener:processes] +command=bash -c "echo READY && read line && kill -SIGQUIT $PPID" +events=PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL \ No newline at end of file