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

35 lines
1.4 KiB
Bash
Raw Normal View History

#!/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=(
start_rpc_service.sh
msg_gateway_start.sh
push_start.sh
msg_transfer_start.sh
2021-10-08 17:50:09 +08:00
sdk_svr_start.sh
2023-04-10 20:59:51 +08:00
start_cron.sh
)
2021-11-24 10:19:12 +08:00
#fixme The 10 second delay to start the project is for the docker-compose one-click to start openIM when the infrastructure dependencies are not started
2021-12-01 10:37:56 +08:00
2021-11-24 10:19:12 +08:00
sleep 10
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 &
for i in ${need_to_start_server_shell[*]}; do
chmod +x $i
./$i
done
2021-11-23 15:30:28 +08:00
sleep 15
#fixme prevents the openIM service exit after execution in the docker container
tail -f /dev/null