Remove SIGHUP handling

Do not expose config reloading yet until we are ready.
This commit is contained in:
Tyler Treat
2017-06-01 14:11:16 -05:00
parent c8280aaee4
commit e109c3fa65

View File

@@ -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)
}
}
}
}()