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

@@ -99,6 +99,14 @@ stderr_events_enabled = true
programs=awx-dispatcher,awx-receiver,awx-uwsgi,awx-daphne,awx-nginx,awx-wsbroadcast,awx-rsyslogd
priority=5
[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