Notify systemd for etcd only node (#3732)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3738/head
Hussein Galal 3 years ago committed by GitHub
parent 7704fb6ee5
commit b1b5f72dc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -382,7 +382,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…
Cancel
Save