mirror of https://github.com/minio/minio.git
Add a graceful msg when CTRL+C is pressed. (#4248)
This commit is contained in:
parent
fa3d5d0f46
commit
5a16dcf4cf
|
@ -102,6 +102,7 @@ func (m *ServerMux) handleServiceSignals() error {
|
||||||
}
|
}
|
||||||
runExitFn(nil)
|
runExitFn(nil)
|
||||||
case serviceStop:
|
case serviceStop:
|
||||||
|
log.Println("Gracefully stopping... (press Ctrl+C again to force)")
|
||||||
if err := m.Close(); err != nil {
|
if err := m.Close(); err != nil {
|
||||||
errorIf(err, "Unable to close server gracefully")
|
errorIf(err, "Unable to close server gracefully")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue