Browse Source

Restore graceful restart on SIGHUP (#10224)

Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.12.0-dev
zeripath GitHub 5 years ago
parent
commit
96569dbfc4
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