X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e47293395f0908a708680df773780ce418b48de9..b28098a9199e87659046307129b9226749ebf9b6:/lib/boot/cmd.go?ds=sidebyside diff --git a/lib/boot/cmd.go b/lib/boot/cmd.go index e22ae7ad7e..4b7284556e 100644 --- a/lib/boot/cmd.go +++ b/lib/boot/cmd.go @@ -15,6 +15,7 @@ import ( "git.arvados.org/arvados.git/lib/cmd" "git.arvados.org/arvados.git/sdk/go/ctxlog" + "github.com/coreos/go-systemd/daemon" ) var Command cmd.Handler = bootCommand{} @@ -134,6 +135,9 @@ func (bcmd bootCommand) run(ctx context.Context, prog string, args []string, std return nil } } + if _, err := daemon.SdNotify(false, "READY=1"); err != nil { + super.logger.WithError(err).Errorf("error notifying init daemon") + } // Wait for signal/crash + orderly shutdown return super.Wait() }