mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
shell start all service for linux and for docker
This commit is contained in:
parent
493916ce80
commit
c1bcadd9ed
@ -10,13 +10,8 @@ need_to_start_server_shell=(
|
|||||||
msg_transfer_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
|
for i in ${need_to_start_server_shell[*]}; do
|
||||||
chmod +x $i
|
chmod +x $i
|
||||||
./$i
|
./$i
|
||||||
done
|
done
|
||||||
|
|
||||||
#fixme prevents the openIM service exit after execution in the docker container
|
|
||||||
tail -f /dev/null
|
|
||||||
|
22
script/start_all_for_docker.sh
Normal file
22
script/start_all_for_docker.sh
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user