Ver código fonte

Restore graceful restart on SIGHUP (#10224)

Co-authored-by: Lauris BH <lauris@nix.lv>
tags/v1.10.5
zeripath 4 anos atrás
pai
commit
37892be635
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      modules/graceful/manager_unix.go

+ 2
- 2
modules/graceful/manager_unix.go Ver arquivo

@@ -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:

Carregando…
Cancelar
Salvar