This commit is contained in:
sxu 2025-03-11 16:35:20 +08:00
parent 6043868db8
commit 12c384aff1
2 changed files with 3 additions and 18 deletions

View File

@ -34,7 +34,7 @@ for source_jar in "${app_source_jars[@]}"; do
echo "copied ${app_workspace}/${source_jar} to '$deploy_path/$new_filename'"
done
cp -f ${biz_workspace}/"bonus-modules/bonus-houqin/target/bonus-smart-canteen.jar" $deploy_path
cp -f ${biz_workspace}/"bonus-modules/bonus-houqin/target/bonus-smart-canteen-v2.jar" $deploy_path
echo "copied ${app_workspace}/${source_jar} to $deploy_path"
# Define an array of JAR files to run
@ -44,7 +44,7 @@ jars=("bonus-auth-${jar_version}-bonus-houqin.jar --spring.config.location=file:
"bonus-job-${jar_version}-bonus-houqin.jar --spring.config.location=file:job_bootstrap.yml"
"bonus-file-${jar_version}-bonus-houqin.jar --spring.config.location=file:file_bootstrap.yml"
"bonus-visual-monitor-${jar_version}-bonus-houqin.jar --spring.config.location=file:visual_bootstrap.yml"
"bonus-smart-canteen.jar --spring.config.location=file:smart_canteen_bootstrap.yml")
"bonus-smart-canteen-v2.jar --spring.config.location=file:smart_canteen_bootstrap.yml")
# 遍历数组并检查每个JAR文件的进程
for jar_with_args in "${jars[@]}"; do

View File

@ -4,8 +4,7 @@ SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-bonus-houqin.jar
JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-bonus-houqin.jar
FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-bonus-houqin.jar
MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-bonus-houqin.jar
SMART_CANTEEN_RESOURCE_NAME=bonus-bonus-houqin.jar
BONUS_CUST_AUTH_RESOURCE_NAME=bonus-cust-auth.jar
SMART_CANTEEN_RESOURCE_NAME=bonus-smart-canteen-v2.jar
tpid=`ps -ef|grep $AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
@ -112,18 +111,4 @@ else
echo 'Stop Success!'
fi
tpid=`ps -ef|grep $BONUS_CUST_AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo 'Stop Process...'
kill -15 $tpid
fi
sleep 5
tpid=`ps -ef|grep $BONUS_CUST_AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo 'Kill Process!'
kill -9 $tpid
else
echo 'Stop Success!'
fi