From 37892be63580e40ced80e041ff2e7dabb2e80866 Mon Sep 17 00:00:00 2001
From: zeripath <art27@cantab.net>
Date: Tue, 11 Feb 2020 05:29:45 +0000
Subject: [PATCH] Restore graceful restart on SIGHUP (#10224)

Co-authored-by: Lauris BH <lauris@nix.lv>
---
 modules/graceful/manager_unix.go | 4 ++--
 1 file 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: