test-errcode
wangchuxiao 2 years ago
parent eeffefc9fc
commit 351b59020d

@ -31,6 +31,7 @@ fi
sleep 1 sleep 1
cd ${msg_gateway_binary_root} cd ${msg_gateway_binary_root}
for ((i = 0; i < ${#ws_ports[@]}; i++)); do for ((i = 0; i < ${#ws_ports[@]}; i++)); do
echo "==========================start msg_gateway server===========================">>../logs/openIM.log 2>&1 &
nohup ./${msg_gateway_name} --port ${rpc_ports[$i]} --ws_port ${ws_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 & nohup ./${msg_gateway_name} --port ${rpc_ports[$i]} --ws_port ${ws_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 &
done done

@ -27,6 +27,7 @@ for ((i = 0; i < ${msg_transfer_service_num}; i++)); do
if [ $prome_port != "" ]; then if [ $prome_port != "" ]; then
cmd="$cmd --prometheus_port $prome_port" cmd="$cmd --prometheus_port $prome_port"
fi fi
echo "==========================start msg_transfer server===========================">>../logs/openIM.log 2>&1 &
$cmd >>../logs/openIM.log 2>&1 & $cmd >>../logs/openIM.log 2>&1 &
done done

@ -25,6 +25,7 @@ sleep 1
cd ${push_binary_root} cd ${push_binary_root}
for ((i = 0; i < ${#rpc_ports[@]}; i++)); do for ((i = 0; i < ${#rpc_ports[@]}; i++)); do
echo "==========================start push server===========================">>../logs/openIM.log 2>&1 &
nohup ./${push_name} --port ${rpc_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 & nohup ./${push_name} --port ${rpc_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 &
done done

@ -24,6 +24,7 @@ fi
#Waiting port recycling #Waiting port recycling
sleep 1 sleep 1
cd ${sdk_server_binary_root} cd ${sdk_server_binary_root}
echo "==========================start js sdk server===========================">>../logs/openIM.log 2>&1 &
nohup ./${sdk_server_name} -openIM_ws_address ${ws_address} -sdk_ws_port ${sdkws_ports[0]} -openIM_api_address ${api_address} -openIM_log_level ${logLevel} >>../logs/openIM.log 2>&1 & nohup ./${sdk_server_name} -openIM_ws_address ${ws_address} -sdk_ws_port ${sdkws_ports[0]} -openIM_api_address ${api_address} -openIM_log_level ${logLevel} >>../logs/openIM.log 2>&1 &
#Check launched service process #Check launched service process

@ -22,6 +22,7 @@ echo "==========================================================">>../logs/openI
for i in ${need_to_start_server_shell[*]}; do for i in ${need_to_start_server_shell[*]}; do
chmod +x $i chmod +x $i
echo "=====================exec ${i}======================">>../logs/openIM.log 2>&1 &
./$i ./$i
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit -1 exit -1

@ -18,7 +18,8 @@ sleep 1
cd ${cron_task_binary_root} cd ${cron_task_binary_root}
#for ((i = 0; i < ${cron_task_service_num}; i++)); do #for ((i = 0; i < ${cron_task_service_num}; i++)); do
nohup ./${cron_task_name} >>../logs/openIM.log 2>&1 & echo "==========================start cron_task process===========================">>../logs/openIM.log 2>&1 &
nohup ./${cron_task_name} >>../logs/openIM.log 2>&1 &
#done #done
#Check launched service process #Check launched service process

@ -79,6 +79,7 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
cmd="./${service_filename[$i]} --port ${service_ports[$j]}" cmd="./${service_filename[$i]} --port ${service_ports[$j]}"
fi fi
echo $cmd echo $cmd
echo "=====================start ${service_filename[$i]}======================">>../logs/openIM.log 2>&1 &
nohup $cmd >>../logs/openIM.log 2>&1 & nohup $cmd >>../logs/openIM.log 2>&1 &
sleep 1 sleep 1
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1" pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"

Loading…
Cancel
Save