mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
Add a graceful msg when CTRL+C is pressed. (#4248)
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user