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.
This commit is contained in:
davidfrickert 2024-01-11 19:57:23 +01:00
parent ae142aed2b
commit ebb724fef3

View file

@ -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