mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 23:33:15 -05:00
Restore graceful restart on SIGHUP (#10224)
Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
parent
b3255921af
commit
37892be635
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue