diff options
Diffstat (limited to 'meta-networking/recipes-connectivity/cloudflared/files/cloudflared.service')
| -rw-r--r-- | meta-networking/recipes-connectivity/cloudflared/files/cloudflared.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/cloudflared/files/cloudflared.service b/meta-networking/recipes-connectivity/cloudflared/files/cloudflared.service new file mode 100644 index 0000000000..decaf0e329 --- /dev/null +++ b/meta-networking/recipes-connectivity/cloudflared/files/cloudflared.service | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=cloudflared | ||
| 3 | After=network-online.target | ||
| 4 | Wants=network-online.target | ||
| 5 | |||
| 6 | [Service] | ||
| 7 | Type=notify | ||
| 8 | DynamicUser=yes | ||
| 9 | EnvironmentFile=/etc/default/cloudflared | ||
| 10 | ExecStart=/usr/bin/cloudflared --no-autoupdate tunnel run --token ${TUNNEL_TOKEN} | ||
| 11 | Restart=on-failure | ||
| 12 | RestartSec=5s | ||
| 13 | |||
| 14 | [Install] | ||
| 15 | WantedBy=multi-user.target | ||
