diff options
author | zeripath <art27@cantab.net> | 2020-02-11 05:29:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 13:29:45 +0800 |
commit | 37892be63580e40ced80e041ff2e7dabb2e80866 (patch) | |
tree | c8c1d61765af8978d61c6c9b437530bba5c8a188 /modules/graceful | |
parent | b3255921af8b7caa7704cc47843cb575c7ce18da (diff) | |
download | gitea-37892be63580e40ced80e041ff2e7dabb2e80866.tar.gz gitea-37892be63580e40ced80e041ff2e7dabb2e80866.zip |
Restore graceful restart on SIGHUP (#10224)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/graceful')
-rw-r--r-- | modules/graceful/manager_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/graceful/manager_unix.go b/modules/graceful/manager_unix.go index 68aa724264..d56a4558b7 100644 --- a/modules/graceful/manager_unix.go +++ b/modules/graceful/manager_unix.go @@ -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: |