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 { select {
case s := <-signalCh: case s := <-signalCh:
sig = s sig = s
case <-c.rpcServer.ReloadCh():
sig = syscall.SIGHUP
case <-c.ShutdownCh: case <-c.ShutdownCh:
sig = os.Interrupt sig = os.Interrupt
case <-c.agent.ShutdownCh(): case <-c.agent.ShutdownCh():