* 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
9 lines
185 B
Go
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
|
|
}
|