mirror of https://github.com/minio/minio.git
fix: notify systemd as soon as we wait on the OS signal (#17199)
This commit is contained in:
parent
e07c2ab868
commit
b62791617c
|
@ -664,10 +664,7 @@ func serverMain(ctx *cli.Context) {
|
||||||
setConsoleSrv(srv)
|
setConsoleSrv(srv)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
server := newConsoleServerFn()
|
logger.FatalIf(newConsoleServerFn().Serve(), "Unable to initialize console server")
|
||||||
logger.FatalIf(server.Listen(), "Unable to initialize console server's sockets")
|
|
||||||
daemon.SdNotify(false, daemon.SdNotifyReady)
|
|
||||||
logger.FatalIf(server.Serve(), "Unable to initialize console server")
|
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -790,6 +787,8 @@ func serverMain(ctx *cli.Context) {
|
||||||
logger.Info("======")
|
logger.Info("======")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
daemon.SdNotify(false, daemon.SdNotifyReady)
|
||||||
|
|
||||||
<-globalOSSignalCh
|
<-globalOSSignalCh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue