Unverified Commit cc694b1f authored by Hussein Galal's avatar Hussein Galal Committed by GitHub

Notify systemd for etcd only node (#3733)

parent e6247d58
......@@ -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")
}
}()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment