Skip to content

Commit a855024

Browse files
Optimize the dss-start-all.sh.
1 parent aff0bee commit a855024

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

sbin/dss-start-all.sh

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -85,27 +85,27 @@ function startDssProject(){
8585
SERVER_NAME=dss-framework-project-server
8686
SERVER_IP=$DSS_FRAMEWORK_PROJECT_SERVER_INSTALL_IP
8787
startApp
88-
sleep 15
89-
90-
echo "------------------------Start to check whether the project service is registered to eureka successfully-----------------------------"
91-
#project服务启动并注册到eureka后再启动其他服务
92-
i=1
93-
while [[ -z $result ]] && [[ $i -le 24 ]]
94-
do
95-
sleep 5
96-
if [ -z $EUREKA_USERNAME ] || [ -z $EUREKA_PASSWORD ];then
97-
response=`curl http://${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
98-
else
99-
response=`curl http://${EUREKA_USENAME}:${EUREKA_PASSWORD}@${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
100-
fi
101-
let i++
102-
result=$(echo $response |grep 'DSS-FRAMEWORK-PROJECT-SERVER')
103-
done
104-
if [[ $i -eq 25 ]]; then
105-
echo "the project server start failed in two minutes,please check the log to find more error details."
106-
exit
107-
fi
108-
echo "------------------------the project service is registered to eureka successfully------------------------------------------------"
88+
sleep 5
89+
90+
# echo "------------------------Start to check whether the project service is registered to eureka successfully-----------------------------"
91+
# #project服务启动并注册到eureka后再启动其他服务
92+
# i=1
93+
# while [[ -z $result ]] && [[ $i -le 24 ]]
94+
# do
95+
# sleep 5
96+
# if [ -z $EUREKA_USERNAME ] || [ -z $EUREKA_PASSWORD ];then
97+
# response=`curl http://${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
98+
# else
99+
# response=`curl http://${EUREKA_USENAME}:${EUREKA_PASSWORD}@${EUREKA_INSTALL_IP}:${EUREKA_PORT}/eureka/apps/DSS-FRAMEWORK-PROJECT-SERVER`
100+
# fi
101+
# let i++
102+
# result=$(echo $response |grep 'DSS-FRAMEWORK-PROJECT-SERVER')
103+
# done
104+
# if [[ $i -eq 25 ]]; then
105+
# echo "the project server start failed in two minutes,please check the log to find more error details."
106+
# exit
107+
# fi
108+
# echo "------------------------the project service is registered to eureka successfully------------------------------------------------"
109109

110110
SERVER_NAME=dss-framework-orchestrator-server
111111
SERVER_IP=$DSS_FRAMEWORK_ORCHESTRATOR_SERVER_INSTALL_IP

0 commit comments

Comments
 (0)