pack/openwrt-cloudflared/cloudflared.network
2023-08-05 02:39:21 +08:00

18 lines
387 B
Bash

#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
NAME=cloudflared
PROG=/usr/bin/cloudflared
start_service() {
procd_open_instance
procd_set_param command "$PROG" --no-autoupdate tunnel --metrics 0.0.0.0:1111 run
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param user network
procd_close_instance
}