Kill all control plane processes if one of them fails to boot

This commit is contained in:
Shane McDonald
2022-03-23 18:38:21 -04:00
parent dbcdb825b0
commit 270497eda1
5 changed files with 29 additions and 11 deletions

View File

@@ -45,7 +45,13 @@ stderr_logfile_maxbytes=0
programs=dispatcher,callback-receiver
priority=5
# TODO: Exit Handler
[eventlistener:superwatcher]
command=stop-supervisor
events=PROCESS_STATE_FATAL,PROCESS_STATE_EXITED
stderr_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
[unix_http_server]
file=/var/run/supervisor/supervisor.sock