Closed sioncojp closed 7 years ago
Please wait until I resolve that there is one thing that bothers me. sorry.
OK. Resolved. Please review!
No, this is not what SignalOnHUP is about. SignalOnHUP is "what start_server sends when it receives a HUP". The default behavior is to send a TERM signal when HUP is received.
I got it. Thank you!!! Close this PR.
Sorry, I've a question.
Why did you choise default not signalOnHUP = syscall.SIGHUP
but signalOnHUP = syscall.SIGTERM
?
The entire design of the go version was based on Perl5's start_server command, so you probably should go ask the author of the original for the real "why".
I'm guessing that it's safer to make the default action "properly kill" the backend program, and force the user to explicitly specify what signal should be used for the backend program to be notified of a graceful restart.
Thanks for the follow up!
When you see it, you will know.