Logo
Explore Help
Sign In
Mirrors/coredns
1
0
Fork 0
You've already forked coredns
mirror of https://github.com/coredns/coredns.git synced 2025-10-28 08:44:17 -04:00
Code Issues Packages Projects Releases Wiki Activity
Files
9178f9d1ee82649a3cb3e015e6150b8fecab8b1a
coredns/plugin/file/shutdown.go

10 lines
185 B
Go
Raw Normal View History

plugin/file: shutdown reload goroutine (#1571) * plugin/file: shutdown reload goroutine Shutdown the z.Reload() routine (if started in the first place) on shutdow and reload. Fixes #1508 * Must be put in c.OnShutdown() * up test coverage
2018-02-28 18:19:37 -08:00
package file
// OnShutdown shuts down any running go-routines for this zone.
func (z *Zone) OnShutdown() error {
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 17:50:49 +02:00
if 0 < z.ReloadInterval {
plugin/file: shutdown reload goroutine (#1571) * plugin/file: shutdown reload goroutine Shutdown the z.Reload() routine (if started in the first place) on shutdow and reload. Fixes #1508 * Must be put in c.OnShutdown() * up test coverage
2018-02-28 18:19:37 -08:00
z.reloadShutdown <- true
}
return nil
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.7 Page: 40ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API