Can I run cloudflared as a service on Linux?

Question

Grade: Education Subject: Support
Can I run cloudflared as a service on Linux?
Asked by:
44 Viewed 44 Answers

Answer (44)

Best Answer
(257)
Yes, you can run cloudflared as a systemd service. Cloudflare provides a systemd unit file example in their documentation. You'll need to adapt it to your specific tunnel ID and user. This ensures cloudflared restarts automatically on boot or if it crashes.