mirror of https://github.com/status-im/consul.git
agent: Watch reload channel for trigger
This commit is contained in:
parent
253037a3e7
commit
590bce9f00
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue