mirror of https://github.com/k3s-io/k3s
Notify systemd for etcd only node (#3733)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>pull/3763/head
parent
e6247d583c
commit
cc694b1f09
|
@ -381,7 +381,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
|||
}
|
||||
|
||||
logrus.Info(version.Program + " is up and running")
|
||||
if cfg.DisableAgent && os.Getenv("NOTIFY_SOCKET") != "" {
|
||||
if (cfg.DisableAgent || cfg.DisableAPIServer) && os.Getenv("NOTIFY_SOCKET") != "" {
|
||||
systemd.SdNotify(true, "READY=1\n")
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue