Closed sioncojp closed 7 years ago
Because L429 calls SIGTERM to kill process in graceful restart logic.
Use start_server --signal-on-hup=XXX
to change the signal that gets sent when HUP is sent to start_server
I got it. Thank you!!! Close this PR.
https://github.com/lestrrat/go-server-starter/blob/master/starter.go#L429
I wanna hook after graceful shutdown.
The line of target in which graceful restart logic is called
syscall.SIGTERM
. (Unfortunately, the line is naming s.signalOnHUP. That identification's PR is https://github.com/lestrrat/go-server-starter/pull/14 )I've hooked to receive a channel calling
syscall.SIGTERM
,but it has executed both graceful restart and shutdown.
Because L429 calls
SIGTERM
to kill process ingraceful restart
logic. And so a hook point wrong recievedSIGTERM
.What do you think about that it should be a method which hook after graceful shutdown?