mirror of
https://github.com/coredns/coredns.git
synced 2025-12-08 03:15:41 -05:00
dont lameduck when reloading (#5472)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
@@ -70,3 +70,15 @@ func (h *health) OnFinalShutdown() error {
|
||||
h.nlSetup = false
|
||||
return nil
|
||||
}
|
||||
|
||||
func (h *health) OnReload() error {
|
||||
if !h.nlSetup {
|
||||
return nil
|
||||
}
|
||||
|
||||
h.stop()
|
||||
|
||||
h.ln.Close()
|
||||
h.nlSetup = false
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user