Notify systemd for etcd only node (#3733)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3763/head
Hussein Galal 2021-07-30 00:41:52 +02:00 committed by GitHub
parent e6247d583c
commit cc694b1f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")
}
}()