chore: add respawn delay to cloudflared
14bf9da1
1 file(s) · +5 −0
| 71 | 71 | (provision '(cloudflared)) |
|
| 72 | 72 | (requirement '(networking)) |
|
| 73 | 73 | (documentation "Run the Cloudflare tunnel.") |
|
| 74 | + | ;; 'networking' is up as soon as dhcpcd is spawned, before it has a |
|
| 75 | + | ;; lease, so cloudflared can exit at boot. Wait between respawns so |
|
| 76 | + | ;; it keeps retrying instead of hitting the respawn limit (5 in 7s) |
|
| 77 | + | ;; and getting disabled. |
|
| 78 | + | (respawn-delay 5) |
|
| 74 | 79 | (start #~(make-forkexec-constructor |
|
| 75 | 80 | (list #$(file-append (specification->package "cloudflared") |
|
| 76 | 81 | "/bin/cloudflared") |