node-supervisor
node-supervisor copied to clipboard
exit when child has exited, not earlier (mh)
With this little addition, the supervisor won't exit until the child process has really exited.
I need this feature because my app has a graceful shutdown.
Already tested it on my machine and works well. Also added few missing semicolons.
What happens to your app without this feature?
Without this, the graceful shutdown procedure is interrupted.
+1 would like to see this merged as well. Right now support for graceful shutdown for the child is not present in process managers for node.js.
+1 I have been looking for graceful shutdown support.
any news on graceful shutdown or workarrounds? this is a pain when combined with the file watcher and then having corrupt DB/Cache because my script is beheaded..
Ok, I can see how this could be useful when some of the child processes take a moment to finish dying. Are those of you who've +1'd this using it on your systems? I'd like to hear from some folks who have tested this branch in daily use, to see if it works well in practice and if there are any ill side effects that commonly show up (for example, child processes hanging or not signalling their exit correctly).