From b89fc5af96e6b94ed93958fb26ce6b5593eec798 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 000000000..609b23d60 --- /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 1b0a3231a..b169e3805 100644 --- a/command/server.go +++ b/command/server.go @@ -1627,6 +1627,9 @@ func (c *ServerCommand) Run(args []string) int { // changes in kms_libraries) core.ReloadManagedKeyRegistryConfig() + // 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)