cloudflare / cloudflare/cloudflared
cloudflared doesn't remove pidfile on Linux when quitting on error
Open
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
When cloudflared is setup as a service on Linux, it only removes its pidfile when stopped via the service file. Otherwise, the pid file remains on the system, especially when cloudflared quits because of an error (e.g. wrong config file).
That means, one always needs to manually remove the pidfile from /var/run in order to restart the service.
Is this by design or just a missed implementation? Because I can't find anything regarding the removal of the pidfile other than in the service file templates within the source.
Contributor guide
Assessment
This issue has not been assessed yet.