diff options
author | Matthew Holt <[email protected]> | 2022-09-02 09:23:51 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2022-09-02 09:24:05 -0600 |
commit | 59286d2c7ede928cc24916abdf6c0fb9ee12b826 (patch) | |
tree | 39df5e8d9e09f3d2699d97087816920a5cd452ca /admin.go | |
parent | 66959d9f18768beb9531d51241978731bff8a305 (diff) | |
download | caddy-59286d2c7ede928cc24916abdf6c0fb9ee12b826.tar.gz caddy-59286d2c7ede928cc24916abdf6c0fb9ee12b826.zip |
notify: Don't send ready after error (fix #5003)
Also simplify the notify package quite a bit.
Also move stop notification into better place.
Add ability to send status or error.
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -40,7 +40,6 @@ import ( "sync" "time" - "github.com/caddyserver/caddy/v2/notify" "github.com/caddyserver/certmagic" "github.com/prometheus/client_golang/prometheus" "go.uber.org/zap" @@ -1020,10 +1019,6 @@ func handleStop(w http.ResponseWriter, r *http.Request) error { } } - if err := notify.NotifyStopping(); err != nil { - Log().Error("unable to notify stopping to service manager", zap.Error(err)) - } - exitProcess(context.Background(), Log().Named("admin.api")) return nil } |