Skip to content

Commit

Permalink
startup/shutdown: Remove deprecated startup/shutdown directives (#2033)
Browse files Browse the repository at this point in the history
* caddy: Remove deprecated startup/shutdown directives

* caddyhttp: Remove deprecated startup/shutdown directives

Users should use 'on startup' and 'on shutdown' instead.
  • Loading branch information
elcore authored and mholt committed Feb 21, 2018
1 parent 37b291f commit 5552dcb
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 169 deletions.
1 change: 0 additions & 1 deletion caddyhttp/caddyhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ import (
_ "github.com/mholt/caddy/caddyhttp/timeouts"
_ "github.com/mholt/caddy/caddyhttp/websocket"
_ "github.com/mholt/caddy/onevent"
_ "github.com/mholt/caddy/startupshutdown"
)
2 changes: 1 addition & 1 deletion caddyhttp/caddyhttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
// ensure that the standard plugins are in fact plugged in
// and registered properly; this is a quick/naive way to do it.
func TestStandardPlugins(t *testing.T) {
numStandardPlugins := 33 // importing caddyhttp plugs in this many plugins
numStandardPlugins := 31 // importing caddyhttp plugs in this many plugins
s := caddy.DescribePlugins()
if got, want := strings.Count(s, "\n"), numStandardPlugins+5; got != want {
t.Errorf("Expected all standard plugins to be plugged in, got:\n%s", s)
Expand Down
98 changes: 0 additions & 98 deletions startupshutdown/startupshutdown.go

This file was deleted.

69 changes: 0 additions & 69 deletions startupshutdown/startupshutdown_test.go

This file was deleted.

0 comments on commit 5552dcb

Please sign in to comment.