mirror of
https://github.com/coredns/coredns.git
synced 2025-08-06 22:37:03 +02:00
* 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
10 lines
185 B
Go
10 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
|
|
}
|