diff --git a/v2ray-core/files/etc/init.d/v2ray b/v2ray-core/files/etc/init.d/v2ray index e0af11346..5eac8c265 100755 --- a/v2ray-core/files/etc/init.d/v2ray +++ b/v2ray-core/files/etc/init.d/v2ray @@ -1972,7 +1972,7 @@ start_instance() { return 1 fi - if ! ( eval "$v2ray_file --test --config=\"$config_file\" >/dev/null 2>&1" ) ; then + if ! ( eval "$v2ray_file test -config \"$config_file\" >/dev/null 2>&1" ) ; then _err "Validate config file failed: $config_file" return 1 fi @@ -2059,7 +2059,8 @@ start_instance() { procd_open_instance "$NAME.$section" procd_set_param command "$v2ray_file" - procd_append_param command "--config=$temp_config" + procd_append_param command run + procd_append_param command -config "$temp_config" procd_set_param respawn if [ -n "$asset_location" ] && [ -d "$asset_location" ] ; then