aboutsummaryrefslogtreecommitdiff
path: root/core/setup/health.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/setup/health.go')
-rw-r--r--core/setup/health.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/setup/health.go b/core/setup/health.go
index 608147b13..542cb3260 100644
--- a/core/setup/health.go
+++ b/core/setup/health.go
@@ -11,8 +11,9 @@ func Health(c *Controller) (middleware.Middleware, error) {
return nil, err
}
- h := health.Health{Addr: addr}
- c.Startup = append(c.Startup, h.ListenAndServe)
+ h := &health.Health{Addr: addr}
+ c.Startup = append(c.Startup, h.Start)
+ c.Shutdown = append(c.Shutdown, h.Shutdown)
return nil, nil
}