progrium/buildstep — pull request #102 by jdoconnor (2014-08-29 18:04:49+00:00)
Title: Relay SIGTERM from docker stop to the child processes of /start

I'm not sure if anyone else wants something like this, but I needed to make it to ensure that the child processes that were spawned by the start script were able to receive the SIGTERM that docker stop sends.

idea (and most of the code) from https://github.com/statianzo/dokku-shoreman/blob/master/post-release