|
|
@ -18,7 +18,7 @@ is_enabled() { |
|
|
|
} |
|
|
|
|
|
|
|
append_param() { |
|
|
|
procd_append_param command "$1" $2 |
|
|
|
procd_append_param command "--$1" $2 |
|
|
|
} |
|
|
|
|
|
|
|
append_param_arg() { |
|
|
@ -35,13 +35,14 @@ start_service() { |
|
|
|
procd_open_instance "$CONF" |
|
|
|
procd_set_param command "$PROG" |
|
|
|
|
|
|
|
append_param_arg "config" "address" "--address" "0.0.0.0:2017" |
|
|
|
append_param_arg "config" "config" "--config" "/etc/v2raya" |
|
|
|
append_param_arg "config" "plugin_listen_port" "--pluginlistenport" "32346" |
|
|
|
append_param_arg "config" "v2ray_bin" "--v2ray-bin" |
|
|
|
append_param_arg "config" "v2ray_config" "--v2ray-config" |
|
|
|
is_enabled "config" "force_ipv6_on" && append_param "--force_ipv6_on" |
|
|
|
is_enabled "config" "verbose" && append_param "--verbose" |
|
|
|
append_param_arg "config" "address" "address" "0.0.0.0:2017" |
|
|
|
append_param_arg "config" "config" "config" "/etc/v2raya" |
|
|
|
append_param_arg "config" "plugin_listen_port" "pluginlistenport" "32346" |
|
|
|
append_param_arg "config" "v2ray_bin" "v2ray-bin" |
|
|
|
append_param_arg "config" "v2ray_confdir" "v2ray-confdir" |
|
|
|
append_param_arg "config" "vless_grpc_inbound_cert_key" "vless-grpc-inbound-cert-key" |
|
|
|
is_enabled "config" "force_ipv6_on" && append_param "force-ipv6-on" |
|
|
|
is_enabled "config" "verbose" && append_param "verbose" |
|
|
|
|
|
|
|
procd_set_param limits core="unlimited" |
|
|
|
procd_set_param respawn |
|
|
|