Supervisor & Docker: How to exit Supervisor if a service doesn't start?
问题 I'm currently using Supervisor inside my Docker images to start and manage my services and I would like to configure Supervisor to exit if at least one of these services entered FATAL state. Doing that, I want to avoid to have Docker containers in running state when nothing except Supervisor has succeeded to start. 回答1: You can do this with a Supervisor event listener. Subscribe it to the event PROCESS_STATE_FATAL , and respond to the event by sending a SIGTERM to supervisord, which you are