Skip to content

Commit

Permalink
Restore graceful restart on SIGHUP (go-gitea#10224)
Browse files Browse the repository at this point in the history
Co-authored-by: Lauris BH <[email protected]>
  • Loading branch information
zeripath and lafriks authored Feb 11, 2020
1 parent b325592 commit 37892be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/graceful/manager_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 37892be

Please sign in to comment.