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 (#15041) (#15269)

Co-authored-by: Alexander Tischenko <tsm@archaron.ru>
  • Loading branch information
ncabatoff and archaron committed May 3, 2022
1 parent 4b459bb commit 7ec212d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/15041.txt
@@ -0,0 +1,3 @@
```release-note:bug
core: fixed systemd reloading notification
```
3 changes: 3 additions & 0 deletions command/server.go
Expand Up @@ -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)
Expand Down

0 comments on commit 7ec212d

Please sign in to comment.