mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
luci ssr plus: multithreading pid indication
This commit is contained in:
parent
ad54ad2919
commit
6f0e369f9b
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=1
|
PKG_VERSION:=1
|
||||||
PKG_RELEASE:=72
|
PKG_RELEASE:=73
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
|
PKG_CONFIG_DEPENDS:= CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray \
|
||||||
|
@ -308,7 +308,7 @@ start_redir() {
|
|||||||
local pid_file="/var/run/ssr-retcp.pid"
|
local pid_file="/var/run/ssr-retcp.pid"
|
||||||
for i in $(seq 1 $threads)
|
for i in $(seq 1 $threads)
|
||||||
do
|
do
|
||||||
$sscmd -c $CONFIG_FILE $ARG_OTA -f /var/run/ssr-retcp.pid >/dev/null 2>&1
|
$sscmd -c $CONFIG_FILE $ARG_OTA -f /var/run/ssr-retcp_$i.pid >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
elif [ "$stype" == "v2ray" ] ;then
|
elif [ "$stype" == "v2ray" ] ;then
|
||||||
$sscmd -config /var/etc/v2-ssr-retcp.json >/dev/null 2>&1 &
|
$sscmd -config /var/etc/v2-ssr-retcp.json >/dev/null 2>&1 &
|
||||||
@ -327,7 +327,7 @@ start_redir() {
|
|||||||
pid_file="/var/run/ssr-reudp.pid"
|
pid_file="/var/run/ssr-reudp.pid"
|
||||||
for i in $(seq 1 $threads)
|
for i in $(seq 1 $threads)
|
||||||
do
|
do
|
||||||
$ucmd -c $last_config_file $ARG_OTA -U -f $pid_file >/dev/null 2>&1
|
$ucmd -c $last_config_file $ARG_OTA -U -f /var/run/ssr-reudp_$i.pid >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
elif [ "$utype" == "v2ray" ] ; then
|
elif [ "$utype" == "v2ray" ] ; then
|
||||||
lua /usr/share/shadowsocksr/genv2config.lua $UDP_RELAY_SERVER udp $(uci_get_by_name $UDP_RELAY_SERVER local_port) > /var/etc/v2-ssr-reudp.json
|
lua /usr/share/shadowsocksr/genv2config.lua $UDP_RELAY_SERVER udp $(uci_get_by_name $UDP_RELAY_SERVER local_port) > /var/etc/v2-ssr-reudp.json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user