From 2b7caed4fe01c52b65d81ab84795a6743a91c453 Mon Sep 17 00:00:00 2001 From: Alexander Tischenko Date: Tue, 3 May 2022 15:34:11 +0300 Subject: [PATCH] When running under systemd, send ready when server completed reloading config #7028 (#15041) --- changelog/15041.txt | 3 +++ command/server.go | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 changelog/15041.txt diff --git a/changelog/15041.txt b/changelog/15041.txt new file mode 100644 index 0000000000000..609b23d609cc4 --- /dev/null +++ b/changelog/15041.txt @@ -0,0 +1,3 @@ +```release-note:bug +core: fixed systemd reloading notification +``` diff --git a/command/server.go b/command/server.go index 87f7e8dda1984..225be6b8fed4d 100644 --- a/command/server.go +++ b/command/server.go @@ -1599,6 +1599,9 @@ func (c *ServerCommand) Run(args []string) int { default: } + // Notify systemd that the server has completed reloading config + c.notifySystemd(systemd.SdNotifyReady) + case <-c.SigUSR2Ch: logWriter := c.logger.StandardWriter(&hclog.StandardLoggerOptions{}) pprof.Lookup("goroutine").WriteTo(logWriter, 2)