script update

This commit is contained in:
away
2021-07-15 11:00:07 +08:00
parent 8b04929f3d
commit 14228b503a
2 changed files with 18 additions and 26 deletions
-3
View File
@@ -4,8 +4,6 @@ source ./style_info.cfg
source ./path_info.cfg
source ./function.sh
list1=$(cat $config_path | grep openImPushPort | awk -F '[:]' '{print $NF}')
list_to_string $list1
rpc_ports=($ports_array)
@@ -25,7 +23,6 @@ for ((i = 0; i < ${#rpc_ports[@]}; i++)); do
nohup ./${push_name} -port ${rpc_ports[$i]} >>../logs/${push_name}.log 2>&1 &
done
#Check launched service process
check=$(ps aux | grep -w ./${push_name} | grep -v grep | wc -l)
if [ $check -eq 1 ]; then