Skip to content

Instantly share code, notes, and snippets.

View fomuon's full-sized avatar

YongKyu, Lee fomuon

  • Naver Corp
  • Bundang, Korea
View GitHub Profile
@tomazzaman
tomazzaman / README.md
Last active April 19, 2024 17:01
Kill supervisor on Docker when any of the services fail

Killing supervisor if any of it's child processes fail

The trick is to only register the listener for events that indicate failure, namely

  • PROCESS_STATE_STOPPED
  • PROCESS_STATE_EXITED
  • PROCESS_STATE_FATAL

Once they do, we should send a SIGQUIT to Supervisor.