parent
e70658a51e
commit
c9f2c9c472
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user