Browse Source

Restore graceful restart on SIGHUP (#10224)

Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.10.5
zeripath 4 years ago
parent
commit
37892be635
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/graceful/manager_unix.go

+ 2
- 2
modules/graceful/manager_unix.go View File

@@ -110,8 +110,8 @@ func (g *Manager) handleSignals(ctx context.Context) {
case sig := <-signalChannel:
switch sig {
case syscall.SIGHUP:
log.Info("PID: %d. Received SIGHUP. Attempting GracefulShutdown...", pid)
g.DoGracefulShutdown()
log.Info("PID: %d. Received SIGHUP. Attempting GracefulRestart...", pid)
g.DoGracefulRestart()
case syscall.SIGUSR1:
log.Info("PID %d. Received SIGUSR1.", pid)
case syscall.SIGUSR2:

Loading…
Cancel
Save