cloudflared: reload service if wan inferface has (re)connected
authorTianling Shen <cnsztl@immortalwrt.org>
Sat, 31 Aug 2024 13:53:39 +0000 (21:53 +0800)
committerTianling Shen <cnsztl@gmail.com>
Mon, 2 Sep 2024 05:19:16 +0000 (13:19 +0800)
commit52037eb625a864c7e9b2b4e30b975bc5a8092192
tree1e6d23657cc918c21df80ae5c1f3379c41db28d3
parentc6f9c82a855ca3a6629f2a3261de5319573ddb60
cloudflared: reload service if wan inferface has (re)connected

Sometimes the wan connection needs time to be established (e.g. cold
boot after power loss) and the service may crash as the internet is
yet available. Add a trigger to reload the service once the wan
interface is up.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
net/cloudflared/Makefile
net/cloudflared/files/cloudflared.init