From c1bcadd9ed883f73eadd7d83b9397749cbd69f35 Mon Sep 17 00:00:00 2001 From: away <1819625428@qq.com> Date: Mon, 13 Sep 2021 15:29:11 +0800 Subject: [PATCH] shell start all service for linux and for docker --- script/start_all.sh | 5 ----- script/start_all_for_docker.sh | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 script/start_all_for_docker.sh diff --git a/script/start_all.sh b/script/start_all.sh index 7d5086313..30353c3fa 100644 --- a/script/start_all.sh +++ b/script/start_all.sh @@ -10,13 +10,8 @@ need_to_start_server_shell=( msg_transfer_start.sh ) -#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 -sleep 10 - for i in ${need_to_start_server_shell[*]}; do chmod +x $i ./$i done -#fixme prevents the openIM service exit after execution in the docker container -tail -f /dev/null diff --git a/script/start_all_for_docker.sh b/script/start_all_for_docker.sh new file mode 100644 index 000000000..7d5086313 --- /dev/null +++ b/script/start_all_for_docker.sh @@ -0,0 +1,22 @@ +#!/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 +) + +#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 +sleep 10 + +for i in ${need_to_start_server_shell[*]}; do + chmod +x $i + ./$i +done + +#fixme prevents the openIM service exit after execution in the docker container +tail -f /dev/null