Remove web watchdog

This commit is contained in:
Guilhem Lettron 2017-02-02 14:52:59 +01:00 committed by Vincent Demeester
parent d324040adc
commit d5f9a80b6c

View file

@ -257,13 +257,7 @@ func run(traefikConfiguration *TraefikConfiguration) {
go func(interval time.Duration) { go func(interval time.Duration) {
tick := time.Tick(interval) tick := time.Tick(interval)
for range tick { for range tick {
if server.globalConfiguration.Web != nil { daemon.SdNotify(true, "WATCHDOG=1")
if _, err := http.Head("http://" + server.globalConfiguration.Web.Address + "/ping"); err == nil {
daemon.SdNotify(true, "WATCHDOG=1")
}
} else {
daemon.SdNotify(true, "WATCHDOG=1")
}
} }
}(t) }(t)
} }