mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-03 02:31:29 +08:00
cloudflared: fix procd service inactive
Exit directly will result procd service inactive and uci configuration changes are no longer monitored. Reported-by: Lvc Revincx <revincx233@gmail.com> Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
7362c91598
commit
5ec9300136
@ -18,7 +18,7 @@ start_service() {
|
|||||||
|
|
||||||
local enabled
|
local enabled
|
||||||
config_get_bool enabled "config" "enabled"
|
config_get_bool enabled "config" "enabled"
|
||||||
[ "$enabled" -eq "1" ] || exit 1
|
[ "$enabled" -eq "1" ] || return 1
|
||||||
|
|
||||||
procd_open_instance "$CONF"
|
procd_open_instance "$CONF"
|
||||||
procd_set_param command "$PROG" "tunnel"
|
procd_set_param command "$PROG" "tunnel"
|
||||||
|
Loading…
Reference in New Issue
Block a user