Update v2ray_server (#3265)

减少日志生成
This commit is contained in:
ntlf9t 2020-02-22 22:08:47 +08:00 committed by GitHub
parent e70658a51e
commit c9f2c9c472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,11 +18,11 @@ gen_v2ray_config_file() {
start_v2ray_server() {
config_foreach gen_v2ray_config_file "user"
fw3 reload
fw3 reload > /dev/null 2>&1
}
stop_v2ray_server() {
fw3 reload
fw3 reload > /dev/null 2>&1
ps -w | grep "$CONFIG_PATH/" | grep -v "grep" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
}
@ -46,4 +46,4 @@ restart() {
stop
sleep 1
start
}
}