Files
open-im-server/script/start_all.sh
T

30 lines
1.1 KiB
Bash
Raw Normal View History

2021-05-26 19:27:41 +08:00
#!/usr/bin/env bash
#fixme This script is the total startup script
#fixme The full name of the shell script that needs to be started is placed in the need_to_start_server_shell array
#fixme Put the shell script name here
need_to_start_server_shell=(
2021-05-27 12:08:09 +08:00
start_rpc_service.sh
2021-05-26 19:27:41 +08:00
push_start.sh
msg_transfer_start.sh
2021-10-11 18:18:50 +08:00
sdk_svr_start.sh
2022-06-16 19:33:35 +08:00
msg_gateway_start.sh
2022-08-15 21:51:00 +08:00
# start_cron.sh
2021-05-26 19:27:41 +08:00
)
2022-04-06 11:47:01 +08:00
time=`date +"%Y-%m-%d %H:%M:%S"`
echo "==========================================================">>../logs/openIM.log 2>&1 &
echo "==========================================================">>../logs/openIM.log 2>&1 &
echo "==========================================================">>../logs/openIM.log 2>&1 &
echo "==========server start time:${time}===========">>../logs/openIM.log 2>&1 &
echo "==========================================================">>../logs/openIM.log 2>&1 &
echo "==========================================================">>../logs/openIM.log 2>&1 &
echo "==========================================================">>../logs/openIM.log 2>&1 &
2021-05-26 19:27:41 +08:00
for i in ${need_to_start_server_shell[*]}; do
chmod +x $i
./$i
2022-04-06 11:47:01 +08:00
if [ $? -ne 0 ]; then
exit -1
fi
2021-05-26 19:27:41 +08:00
done