Skip to content

Commit b192b63

Browse files
committed
Restore graceful restart on SIGHUP
1 parent b5418a6 commit b192b63

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)