diff --git a/cloudflared.service b/cloudflared.service new file mode 100644 index 0000000..e59c243 --- /dev/null +++ b/cloudflared.service @@ -0,0 +1,16 @@ +[Unit] +Description=cloudflared DNS over HTTPS proxy +After=syslog.target network-online.target + +[Service] +Type=simple +User=cloudflared +EnvironmentFile=/etc/default/cloudflared +ExecStart=/usr/local/bin/cloudflared proxy-dns $CLOUDFLARED_OPTS +Restart=on-failure +RestartSec=10 +KillMode=process + +[Install] +WantedBy=multi-user.target +