mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: generalize SC config and also skip healing sub-sys under SD (#15757)
This commit is contained in:
@@ -78,11 +78,15 @@ func handleSignals() {
|
||||
case <-globalHTTPServerErrorCh:
|
||||
exit(stopProcess())
|
||||
case osSignal := <-globalOSSignalCh:
|
||||
globalReplicationPool.SaveState(context.Background())
|
||||
if !globalIsGateway {
|
||||
globalReplicationPool.SaveState(context.Background())
|
||||
}
|
||||
logger.Info("Exiting on signal: %s", strings.ToUpper(osSignal.String()))
|
||||
exit(stopProcess())
|
||||
case signal := <-globalServiceSignalCh:
|
||||
globalReplicationPool.SaveState(context.Background())
|
||||
if !globalIsGateway {
|
||||
globalReplicationPool.SaveState(context.Background())
|
||||
}
|
||||
switch signal {
|
||||
case serviceRestart:
|
||||
logger.Info("Restarting on service signal")
|
||||
|
||||
Reference in New Issue
Block a user