mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
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…
x
Reference in New Issue
Block a user