update scripts

This commit is contained in:
sxu 2024-10-15 17:54:09 +08:00
parent f7a8d4ebbd
commit 0bd898fbc7
1 changed files with 48 additions and 0 deletions

View File

@ -1,6 +1,9 @@
AUTH_RESOURCE_NAME=bonus-auth-24.9.0-material.jar
GATEWAY_RESOURCE_NAME=bonus-gateway-24.9.0-material.jar
SYS_RESOURCE_NAME=bonus-system-24.9.0-material.jar
JOB_RESOURCE_NAME=bonus-job-24.9.0-material.jar
FILE_RESOURCE_NAME=bonus-file-24.9.0-material.jar
MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.9.0-material.jar
MATERIAL_RESOURCE_NAME=bonus-material.jar
@ -49,6 +52,51 @@ echo 'Stop Success!'
fi
tpid=`ps -ef|grep $JOB_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 $JOB_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
tpid=`ps -ef|grep $FILE_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 $FILE_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
tpid=`ps -ef|grep $MONITOR_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 $MONITOR_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
tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then
echo 'Stop Process...'