From 709e5946e58547866793e527bd89a58dcd4521f1 Mon Sep 17 00:00:00 2001 From: Zhen Wang Date: Sun, 17 Dec 2023 23:43:51 +0800 Subject: [PATCH] [LINKIS-5043] Only start the eureka service if DISCOVERY is EUREKA (#5046) --- linkis-dist/package/sbin/linkis-start-all.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/linkis-dist/package/sbin/linkis-start-all.sh b/linkis-dist/package/sbin/linkis-start-all.sh index 55c1ba684e..d70b37d19d 100644 --- a/linkis-dist/package/sbin/linkis-start-all.sh +++ b/linkis-dist/package/sbin/linkis-start-all.sh @@ -64,10 +64,12 @@ echo "<-------------------------------->" echo "Linkis manager data is being cleared" sh $LINKIS_HOME/sbin/clear-server.sh -#linkis-mg-eureka -export SERVER_NAME="mg-eureka" -SERVER_IP=$EUREKA_INSTALL_IP -startApp +if [ "$DISCOVERY" == "EUREKA" ]; then + #linkis-mg-eureka + export SERVER_NAME="mg-eureka" + SERVER_IP=$EUREKA_INSTALL_IP + startApp +fi #linkis-mg-gateway SERVER_NAME="mg-gateway"