From de4f7a1ed61ed17a961732668a2c5957130d4740 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Thu, 30 Jun 2022 15:11:32 -0400 Subject: [PATCH] 16552: Fix warnings re wrong process signalling service readiness. Arvados-DCO-1.1-Signed-off-by: Tom Clegg --- lib/boot/service.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/boot/service.go b/lib/boot/service.go index b27a746228..506407f4e8 100644 --- a/lib/boot/service.go +++ b/lib/boot/service.go @@ -47,7 +47,15 @@ func (runner runServiceCommand) Run(ctx context.Context, fail func(error), super super.waitShutdown.Add(1) go func() { defer super.waitShutdown.Done() - fail(super.RunProgram(ctx, super.tempdir, runOptions{env: []string{"ARVADOS_SERVICE_INTERNAL_URL=" + u.String()}}, binfile, runner.name, "-config", super.configfile)) + fail(super.RunProgram(ctx, super.tempdir, runOptions{ + env: []string{ + "ARVADOS_SERVICE_INTERNAL_URL=" + u.String(), + // Child process should not + // try to tell systemd that we + // are ready. + "NOTIFY_SOCKET=", + }, + }, binfile, runner.name, "-config", super.configfile)) }() } return nil -- 2.30.2