From 552aab723c05088d049f085ee3b480dac1dbdba7 Mon Sep 17 00:00:00 2001 From: marqc Date: Sat, 29 Sep 2018 17:50:49 +0200 Subject: 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 --- plugin/file/shutdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/file/shutdown.go') diff --git a/plugin/file/shutdown.go b/plugin/file/shutdown.go index cecd76e9e..9aa598948 100644 --- a/plugin/file/shutdown.go +++ b/plugin/file/shutdown.go @@ -2,7 +2,7 @@ package file // OnShutdown shuts down any running go-routines for this zone. func (z *Zone) OnShutdown() error { - if !z.NoReload { + if 0 < z.ReloadInterval { z.reloadShutdown <- true } return nil -- cgit v1.2.3