From 23c2d81c2c0a23b31afa2e18715e410429ae9ea6 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 14 Mar 2023 11:57:37 +0800 Subject: [PATCH] zap --- script/msg_gateway_start.sh | 2 +- script/msg_transfer_start.sh | 2 +- script/push_start.sh | 2 +- script/sdk_svr_start.sh | 2 +- script/start_all.sh | 2 +- script/start_cron.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/script/msg_gateway_start.sh b/script/msg_gateway_start.sh index 9816b1c49..e29a7ce3d 100755 --- a/script/msg_gateway_start.sh +++ b/script/msg_gateway_start.sh @@ -31,7 +31,7 @@ fi sleep 1 cd ${msg_gateway_binary_root} for ((i = 0; i < ${#ws_ports[@]}; i++)); do - echo "==========================start msg_gateway server===========================">>../logs/openIM.log 2>&1 & + echo "==========================start msg_gateway server===========================">>../logs/openIM.log nohup ./${msg_gateway_name} --port ${rpc_ports[$i]} --ws_port ${ws_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 & done diff --git a/script/msg_transfer_start.sh b/script/msg_transfer_start.sh index 93ec379f8..86b1d62ee 100755 --- a/script/msg_transfer_start.sh +++ b/script/msg_transfer_start.sh @@ -27,7 +27,7 @@ for ((i = 0; i < ${msg_transfer_service_num}; i++)); do if [ $prome_port != "" ]; then cmd="$cmd --prometheus_port $prome_port" fi - echo "==========================start msg_transfer server===========================">>../logs/openIM.log 2>&1 & + echo "==========================start msg_transfer server===========================">>../logs/openIM.log $cmd >>../logs/openIM.log 2>&1 & done diff --git a/script/push_start.sh b/script/push_start.sh index 6728ead97..d047a0500 100644 --- a/script/push_start.sh +++ b/script/push_start.sh @@ -25,7 +25,7 @@ sleep 1 cd ${push_binary_root} for ((i = 0; i < ${#rpc_ports[@]}; i++)); do - echo "==========================start push server===========================">>../logs/openIM.log 2>&1 & + echo "==========================start push server===========================">>../logs/openIM.log nohup ./${push_name} --port ${rpc_ports[$i]} --prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 & done diff --git a/script/sdk_svr_start.sh b/script/sdk_svr_start.sh index 8f994b856..c1747fa3b 100644 --- a/script/sdk_svr_start.sh +++ b/script/sdk_svr_start.sh @@ -24,7 +24,7 @@ fi #Waiting port recycling sleep 1 cd ${sdk_server_binary_root} - echo "==========================start js sdk server===========================">>../logs/openIM.log 2>&1 & + echo "==========================start js sdk server===========================">>../logs/openIM.log 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 diff --git a/script/start_all.sh b/script/start_all.sh index eb6ba102e..01c6ab652 100644 --- a/script/start_all.sh +++ b/script/start_all.sh @@ -22,7 +22,7 @@ echo "==========================================================">>../logs/openI for i in ${need_to_start_server_shell[*]}; do chmod +x $i - echo "=====================exec ${i}======================">>../logs/openIM.log 2>&1 & + echo "=====================exec ${i}======================">>../logs/openIM.log ./$i if [ $? -ne 0 ]; then exit -1 diff --git a/script/start_cron.sh b/script/start_cron.sh index 5aab4c842..a0b62a2d2 100644 --- a/script/start_cron.sh +++ b/script/start_cron.sh @@ -18,7 +18,7 @@ sleep 1 cd ${cron_task_binary_root} #for ((i = 0; i < ${cron_task_service_num}; i++)); do - echo "==========================start cron_task process===========================">>../logs/openIM.log 2>&1 & + echo "==========================start cron_task process===========================">>../logs/openIM.log nohup ./${cron_task_name} >>../logs/openIM.log 2>&1 & #done