diff options
author | 2018-03-01 07:22:08 -0800 | |
---|---|---|
committer | 2018-03-01 07:22:08 -0800 | |
commit | 50b96fe2cea167419ea09b66177dd194c47791f3 (patch) | |
tree | 58c0a029028f2d0c42eeca7dcb0a6ad383fdf0eb | |
parent | d67396dc7b87591ac07ac03554e57395c53d599b (diff) | |
download | coredns-50b96fe2cea167419ea09b66177dd194c47791f3.tar.gz coredns-50b96fe2cea167419ea09b66177dd194c47791f3.tar.zst coredns-50b96fe2cea167419ea09b66177dd194c47791f3.zip |
deprecate startup/shutdown (#1577)
error on startup when we see these in a corefile:
~~~
% ./coredns
2018/03/01 06:51:23 plugin/startup: this plugin has been deprecated
% ./coredns
2018/03/01 06:51:32 plugin/shutdown: this plugin has been deprecated
~~~
-rw-r--r-- | core/plugin/zplugin.go | 2 | ||||
-rw-r--r-- | plugin.cfg | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/plugin/zplugin.go b/core/plugin/zplugin.go index 0de47374a..9233c9a37 100644 --- a/core/plugin/zplugin.go +++ b/core/plugin/zplugin.go @@ -10,6 +10,7 @@ import ( _ "github.com/coredns/coredns/plugin/cache" _ "github.com/coredns/coredns/plugin/chaos" _ "github.com/coredns/coredns/plugin/debug" + _ "github.com/coredns/coredns/plugin/deprecated" _ "github.com/coredns/coredns/plugin/dnssec" _ "github.com/coredns/coredns/plugin/dnstap" _ "github.com/coredns/coredns/plugin/erratic" @@ -37,5 +38,4 @@ import ( _ "github.com/coredns/coredns/plugin/trace" _ "github.com/coredns/coredns/plugin/whoami" _ "github.com/mholt/caddy/onevent" - _ "github.com/mholt/caddy/startupshutdown" ) diff --git a/plugin.cfg b/plugin.cfg index 21da3b949..9e604eb6a 100644 --- a/plugin.cfg +++ b/plugin.cfg @@ -53,5 +53,5 @@ proxy:proxy erratic:erratic whoami:whoami on:github.com/mholt/caddy/onevent -startup:github.com/mholt/caddy/startupshutdown -shutdown:github.com/mholt/caddy/startupshutdown +startup:deprecated +shutdown:deprecated |