Open edbrannin opened 8 years ago
- exec the other process on its last line
This is the preferred method. exec
replaces the current process with a new one, and the supervisord
can signal the new one directly. I'll leave this issue open until we add something to the documentation.
It would be rather helpful if the Subprocess page in supervisor's documentation mentioned the fixes listed in How to propagate SIGTERM to a child process in a Bash script.
Short version: if supervisor is starting a bash-wrapper around another process, that wrapper should either:
exec
the other process on its last lineSIGTERM
withtrap
/wait