mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Make SIGTERM exit 1
Before 2.2 series, the TERM signal used to not be handled by the server, so it would not have been a clean exit. In 2.2, it was changed to process TERM signal as a clean exit but this affects the behavior of some tools that were expecting TERM to be exit 1. Signed-off-by: Waldemar Quevedo <wally@synadia.com>
This commit is contained in:
@@ -59,7 +59,7 @@ func (s *Server) handleSignals() {
|
||||
|
||||
if !ldm {
|
||||
s.Shutdown()
|
||||
os.Exit(0)
|
||||
os.Exit(1)
|
||||
}
|
||||
case syscall.SIGUSR1:
|
||||
// File log re-open for rotating file logs.
|
||||
|
||||
Reference in New Issue
Block a user