Add a graceful msg when CTRL+C is pressed. (#4248)

master
Harshavardhana 8 years ago committed by GitHub
parent fa3d5d0f46
commit 5a16dcf4cf
  1. 1
      cmd/service.go

@ -102,6 +102,7 @@ func (m *ServerMux) handleServiceSignals() error {
}
runExitFn(nil)
case serviceStop:
log.Println("Gracefully stopping... (press Ctrl+C again to force)")
if err := m.Close(); err != nil {
errorIf(err, "Unable to close server gracefully")
}

Loading…
Cancel
Save