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