mirror of
https://github.com/containous/traefik.git
synced 2025-03-27 22:50:11 +03:00
Remove web watchdog
This commit is contained in:
parent
d324040adc
commit
d5f9a80b6c
@ -257,13 +257,7 @@ func run(traefikConfiguration *TraefikConfiguration) {
|
||||
go func(interval time.Duration) {
|
||||
tick := time.Tick(interval)
|
||||
for range tick {
|
||||
if server.globalConfiguration.Web != nil {
|
||||
if _, err := http.Head("http://" + server.globalConfiguration.Web.Address + "/ping"); err == nil {
|
||||
daemon.SdNotify(true, "WATCHDOG=1")
|
||||
}
|
||||
} else {
|
||||
daemon.SdNotify(true, "WATCHDOG=1")
|
||||
}
|
||||
daemon.SdNotify(true, "WATCHDOG=1")
|
||||
}
|
||||
}(t)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user