Remove web watchdog
This commit is contained in:
parent
d324040adc
commit
d5f9a80b6c
1 changed files with 1 additions and 7 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue