mirror of
https://github.com/coredns/coredns.git
synced 2025-12-20 09:05:14 -05:00
Fix graceful reload (#141)
Fix CoreDNS graceful reloading. This uses the same stuff as Caddy (obviously), but extends it for UDP listeners as well. Also add to the README that we *will* call Shutdown for middleware. Fixes #4
This commit is contained in:
@@ -42,7 +42,8 @@ type Config struct {
|
||||
FirstStartup []func() error
|
||||
|
||||
// Functions (or methods) to execute when the server quits;
|
||||
// these are executed in response to SIGINT and are blocking
|
||||
// these are executed in response to SIGINT and are blocking. These
|
||||
// function are *also* called when we are restarting.
|
||||
Shutdown []func() error
|
||||
|
||||
// The path to the configuration file from which this was loaded
|
||||
|
||||
Reference in New Issue
Block a user