From 590bce9f0019a3802976e84d56a42cb58d1c7c11 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 11 Jun 2014 10:53:28 -0700 Subject: [PATCH] agent: Watch reload channel for trigger --- command/agent/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/command.go b/command/agent/command.go index 6da6074af4..2c9c5e271e 100644 --- a/command/agent/command.go +++ b/command/agent/command.go @@ -388,6 +388,8 @@ WAIT: select { case s := <-signalCh: sig = s + case <-c.rpcServer.ReloadCh(): + sig = syscall.SIGHUP case <-c.ShutdownCh: sig = os.Interrupt case <-c.agent.ShutdownCh():