Skip to content

Commit

Permalink
When running under systemd, send ready when server completed reloadin…
Browse files Browse the repository at this point in the history
…g config #7028
  • Loading branch information
archaron committed Apr 14, 2022
1 parent 14b4685 commit d230c83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d230c83

Please sign in to comment.