From b1651c5d5444b990b58180a26d6e76779cbb88a9 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Mon, 17 Oct 2022 20:46:28 +0800 Subject: treewide: fix procd service inactive Exit directly will result procd service inactive and uci configuration changes are no longer monitored. Reported-by: Lvc Revincx Signed-off-by: Tianling Shen --- net/v2ray-core/files/v2ray.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/v2ray-core/files') diff --git a/net/v2ray-core/files/v2ray.init b/net/v2ray-core/files/v2ray.init index e43f51183..c19bd9cab 100755 --- a/net/v2ray-core/files/v2ray.init +++ b/net/v2ray-core/files/v2ray.init @@ -11,7 +11,7 @@ start_service() { local enabled config_get_bool enabled "enabled" "enabled" "0" - [ "$enabled" -eq "0" ] && exit 1 + [ "$enabled" -eq "1" ] || return 1 local confdir local conffiles -- cgit v1.2.3