You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
1 year ago
|
#!/usr/bin/env bash
|
||
1 year ago
|
#fixme This scripts is the total startup scripts
|
||
|
#fixme The full name of the shell scripts that needs to be started is placed in the need_to_start_server_shell array
|
||
1 year ago
|
|
||
1 year ago
|
#fixme Put the shell scripts name here
|
||
1 year ago
|
need_to_start_server_shell=(
|
||
|
start_rpc_service.sh
|
||
|
push_start.sh
|
||
|
msg_transfer_start.sh
|
||
|
sdk_svr_start.sh
|
||
1 year ago
|
msg_gateway_start.sh
|
||
2 years ago
|
start_cron.sh
|
||
1 year ago
|
)
|
||
|
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
|
||
1 year ago
|
echo "=====================exec ${i}======================">>../logs/openIM.log
|
||
1 year ago
|
./$i
|
||
|
if [ $? -ne 0 ]; then
|
||
|
exit -1
|
||
|
fi
|
||
|
done
|