agent: Watch reload channel for trigger

This commit is contained in:
Armon Dadgar 2014-06-11 10:53:28 -07:00
parent 253037a3e7
commit 590bce9f00
1 changed files with 2 additions and 0 deletions

View File

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