cloudflare / cloudflare/cloudflared

systemd watchdog

Open
#517 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

One way to mitigate issues like #514 could be to use systemd's `WatchdogSec=` property to automatically restart an idle cloudflared. For this to be possible, cloudflared would have to send a `WATCHDOG=1` message to systemd when it has successfully processed a request. For better performance, cloudflared could send the ping only when necessary instead of after every request, using the `WATCHDOG_USEC` environment variable to determine when a ping is expected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.