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,14 +257,8 @@ 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")
}
}
}(t)
}
log.Info(t.String())