Skip to content

Commit 37892be

Browse files
zeripathlafriks
andauthored
Restore graceful restart on SIGHUP (#10224)
Co-authored-by: Lauris BH <[email protected]>
1 parent b325592 commit 37892be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/graceful/manager_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ func (g *Manager) handleSignals(ctx context.Context) {
110110
case sig := <-signalChannel:
111111
switch sig {
112112
case syscall.SIGHUP:
113-
log.Info("PID: %d. Received SIGHUP. Attempting GracefulShutdown...", pid)
114-
g.DoGracefulShutdown()
113+
log.Info("PID: %d. Received SIGHUP. Attempting GracefulRestart...", pid)
114+
g.DoGracefulRestart()
115115
case syscall.SIGUSR1:
116116
log.Info("PID %d. Received SIGUSR1.", pid)
117117
case syscall.SIGUSR2:

0 commit comments

Comments
 (0)