mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Remove SIGHUP handling
Do not expose config reloading yet until we are ready.
This commit is contained in:
@@ -16,7 +16,7 @@ func (s *Server) handleSignals() {
|
||||
}
|
||||
c := make(chan os.Signal, 1)
|
||||
|
||||
signal.Notify(c, syscall.SIGINT, syscall.SIGUSR1, syscall.SIGHUP)
|
||||
signal.Notify(c, syscall.SIGINT, syscall.SIGUSR1)
|
||||
|
||||
go func() {
|
||||
for sig := range c {
|
||||
@@ -28,11 +28,6 @@ func (s *Server) handleSignals() {
|
||||
case syscall.SIGUSR1:
|
||||
// File log re-open for rotating file logs.
|
||||
s.ReOpenLogFile()
|
||||
case syscall.SIGHUP:
|
||||
Noticef("Server Reloading..")
|
||||
if err := s.Reload(); err != nil {
|
||||
Errorf("Server reload failed, reverting to last known good config: %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user