Learn how to write your wrapper scripts for supervisord or Docker such that they react correctly to SIGTERM.| Andreas Veithen's blog