aboutsummaryrefslogtreecommitdiffhomepage
path: root/admin.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2022-09-02 09:23:51 -0600
committerMatthew Holt <[email protected]>2022-09-02 09:24:05 -0600
commit59286d2c7ede928cc24916abdf6c0fb9ee12b826 (patch)
tree39df5e8d9e09f3d2699d97087816920a5cd452ca /admin.go
parent66959d9f18768beb9531d51241978731bff8a305 (diff)
downloadcaddy-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.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/admin.go b/admin.go
index a9432bf55..36cc2f82a 100644
--- a/admin.go
+++ b/admin.go
@@ -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
}