coredns/plugin/file/shutdown.go
marqc 552aab723c Configurable zone reload interval in file plugin (#2110)
* Configurable zone reload interval in file plugin

* passing reload config from auto plugin to file plugin. removed noReload property from Zone struct. fixed tests based on short file reload hack
2018-09-29 16:50:49 +01:00

9 lines
185 B
Go

package file
// OnShutdown shuts down any running go-routines for this zone.
func (z *Zone) OnShutdown() error {
if 0 < z.ReloadInterval {
z.reloadShutdown <- true
}
return nil
}