From c8b5c0f3a32c4021b1ad79ff9ea856b0fe14e304 Mon Sep 17 00:00:00 2001 From: lexluo09 <39718951+lexluo09@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:32:41 +0800 Subject: [PATCH] (improvement) remove separate shell and support start llmParser service (#83) --- assembly/bin/supersonic-build.sh | 3 --- assembly/bin/supersonic-daemon.sh | 20 +++----------------- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/assembly/bin/supersonic-build.sh b/assembly/bin/supersonic-build.sh index 7c4bf8fbd..bab59854f 100644 --- a/assembly/bin/supersonic-build.sh +++ b/assembly/bin/supersonic-build.sh @@ -15,9 +15,6 @@ mvn -f $baseDir/../ clean package -DskipTests #2. move package to build cp $baseDir/../launchers/standalone/target/*.tar.gz ${buildDir}/supersonic.tar.gz -#cp $baseDir/../launchers/semantic/target/*.tar.gz ${buildDir}/supersonic-semantic.tar.gz -#cp $baseDir/../launchers/chat/target/*.tar.gz ${buildDir}/supersonic-chat.tar.gz - #3. build webapp chmod +x $baseDir/../webapp/start-fe-prod.sh diff --git a/assembly/bin/supersonic-daemon.sh b/assembly/bin/supersonic-daemon.sh index 486bd7291..39eee3193 100644 --- a/assembly/bin/supersonic-daemon.sh +++ b/assembly/bin/supersonic-daemon.sh @@ -15,25 +15,11 @@ if [[ "$service" == "semantic" || -z "$service" ]] && [ "$command" != "stop" ] rm -fr ${runtimeDir}/* #2. package lib - tar -zxvf ${buildDir}/supersonic.tar.gz -C ${runtimeDir} -# tar -zxvf ${buildDir}/supersonic-chat.tar.gz -C ${runtimeDir} -# tar -zxvf ${buildDir}/supersonic-semantic.tar.gz -C ${runtimeDir} - mv ${runtimeDir}/launchers-standalone-* ${runtimeDir}/supersonic-standalone -# mv ${runtimeDir}/launchers-chat-* ${runtimeDir}/supersonic-chat -# mv ${runtimeDir}/launchers-semantic-* ${runtimeDir}/supersonic-semantic - tar -zxvf ${buildDir}/supersonic-webapp.tar.gz -C ${buildDir} - -# mkdir -p ${runtimeDir}/supersonic-semantic/webapp -# mkdir -p ${runtimeDir}/supersonic-chat/webapp mkdir -p ${runtimeDir}/supersonic-standalone/webapp - -# cp -fr ${buildDir}/supersonic-webapp/* ${runtimeDir}/supersonic-semantic/webapp -# cp -fr ${buildDir}/supersonic-webapp/* ${runtimeDir}/supersonic-chat/webapp cp -fr ${buildDir}/supersonic-webapp/* ${runtimeDir}/supersonic-standalone/webapp - rm -fr ${buildDir}/supersonic-webapp fi if [[ "$service" == "semantic" ]]; then @@ -59,7 +45,7 @@ case "$command" in sh ${runtimeDir}/supersonic-chat/bin/service.sh start elif [[ "$service" == "llmparser" ]];then echo -e "Starting LLM" - sh ${runtimeDir}/supersonic-chat/llm/bin/service.sh start + sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh start elif [[ -z "$service" ]]; then echo -e "Starting supersonic" sh ${runtimeDir}/supersonic-standalone/bin/service.sh start @@ -77,7 +63,7 @@ case "$command" in sh ${runtimeDir}/supersonic-chat/bin/service.sh stop elif [[ "$service" == "llmparser" ]];then echo -e "Stopping LLM" - sh ${runtimeDir}/supersonic-chat/llm/bin/service.sh stop + sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh stop elif [[ -z "$service" ]]; then echo -e "Stopping supersonic" sh ${runtimeDir}/supersonic-standalone/bin/service.sh stop @@ -95,7 +81,7 @@ case "$command" in sh ${runtimeDir}/supersonic-chat/bin/service.sh restart elif [[ "$service" == "llmparser" ]];then echo -e "Restarting LLM" - sh ${runtimeDir}/supersonic-chat/llm/bin/service.sh restart + sh ${runtimeDir}/supersonic-standalone/llm/bin/service.sh restart elif [[ -z "$service" ]]; then echo -e "Restarting supersonic" sh ${runtimeDir}/supersonic-standalone/bin/service.sh restart