From 5ab7f682c3facab319de6c178f964d4658d8c9f4 Mon Sep 17 00:00:00 2001 From: SHIVANSH-ux-ys Date: Tue, 1 Sep 2026 23:49:49 +0530 Subject: [PATCH] web: emit systemd sd_notify readiness notification on startup (#389) --- web/tls_config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/tls_config.go b/web/tls_config.go index b40be6bb..8007dc91 100644 --- a/web/tls_config.go +++ b/web/tls_config.go @@ -30,6 +30,7 @@ import ( "time" "github.com/coreos/go-systemd/v22/activation" + "github.com/coreos/go-systemd/v22/daemon" "github.com/mdlayher/vsock" config_util "github.com/prometheus/common/config" "go.yaml.in/yaml/v2" @@ -302,6 +303,7 @@ func ConfigToTLSConfig(c *TLSConfig) (*tls.Config, error) { // ServeMultiple starts the server on the given listeners. The FlagConfig is // also passed on to Serve. func ServeMultiple(listeners []net.Listener, server *http.Server, flags *FlagConfig, logger *slog.Logger) error { + _, _ = daemon.SdNotify(false, daemon.SdNotifyReady) errs := new(errgroup.Group) for _, l := range listeners { errs.Go(func() error {