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 {
|
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():
|
||||||
|
|
Loading…
Reference in New Issue