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
~~~
This commit is contained in:
Miek Gieben
2018-03-01 07:22:08 -08:00
committed by GitHub
parent d67396dc7b
commit 50b96fe2ce
2 changed files with 3 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import (
_ "github.com/coredns/coredns/plugin/cache" _ "github.com/coredns/coredns/plugin/cache"
_ "github.com/coredns/coredns/plugin/chaos" _ "github.com/coredns/coredns/plugin/chaos"
_ "github.com/coredns/coredns/plugin/debug" _ "github.com/coredns/coredns/plugin/debug"
_ "github.com/coredns/coredns/plugin/deprecated"
_ "github.com/coredns/coredns/plugin/dnssec" _ "github.com/coredns/coredns/plugin/dnssec"
_ "github.com/coredns/coredns/plugin/dnstap" _ "github.com/coredns/coredns/plugin/dnstap"
_ "github.com/coredns/coredns/plugin/erratic" _ "github.com/coredns/coredns/plugin/erratic"
@@ -37,5 +38,4 @@ import (
_ "github.com/coredns/coredns/plugin/trace" _ "github.com/coredns/coredns/plugin/trace"
_ "github.com/coredns/coredns/plugin/whoami" _ "github.com/coredns/coredns/plugin/whoami"
_ "github.com/mholt/caddy/onevent" _ "github.com/mholt/caddy/onevent"
_ "github.com/mholt/caddy/startupshutdown"
) )

View File

@@ -53,5 +53,5 @@ proxy:proxy
erratic:erratic erratic:erratic
whoami:whoami whoami:whoami
on:github.com/mholt/caddy/onevent on:github.com/mholt/caddy/onevent
startup:github.com/mholt/caddy/startupshutdown startup:deprecated
shutdown:github.com/mholt/caddy/startupshutdown shutdown:deprecated