diff --git a/cmd/git-sync/main.go b/cmd/git-sync/main.go index 419e842..f1ee82c 100644 --- a/cmd/git-sync/main.go +++ b/cmd/git-sync/main.go @@ -246,6 +246,9 @@ func main() { if *flHTTPMetrics { http.Handle("/metrics", promhttp.Handler()) } + // This is a dumb liveliness check endpoint. Currently this checks + // nothing and will always return 200 if the process is live. + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {}) http.Serve(ln, http.DefaultServeMux) }() }