OSDN Git Service

v2raya: fix procd service inactive
authorTianling Shen <cnsztl@immortalwrt.org>
Mon, 17 Oct 2022 13:13:07 +0000 (21:13 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Mon, 17 Oct 2022 13:13:07 +0000 (21:13 +0800)
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>
v2raya/files/v2raya.init

index a8295b6..9c207f7 100755 (executable)
@@ -34,7 +34,7 @@ append_env_bool() {
 start_service() {
        config_load "$CONF"
 
-       is_enabled "config" "enabled" || exit 1
+       is_enabled "config" "enabled" || return 1
 
        procd_open_instance "$CONF"
        procd_set_param command "$PROG"