This commit is contained in:
sxu 2024-07-19 12:59:59 +08:00
parent 769b4a8c66
commit 575209e88e
1 changed files with 7 additions and 2 deletions

View File

@ -47,9 +47,9 @@ if($auth_service_enable);then
fi
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $sgzb_auth_jar >/dev/null 2>&1 &
sgzb_auth_pid=`lsof -i:$sgzb_auth_port|grep "LISTEN"|awk '{print $2}'`
until [ -n "$auth_service_pid" ]
until [ -n "$sgzb_auth_pid" ]
do
auth_service_pid=`lsof -i:$sgzb_auth_port|grep "LISTEN"|awk '{print $2}'`
sgzb_auth_pid=`lsof -i:$sgzb_auth_port|grep "LISTEN"|awk '{print $2}'`
done
echo "auth service pid is $sgzb_auth_pid"
echo "--------auth_service 启动成功--------------"
@ -86,11 +86,16 @@ if($sgzb_modules_system_enable);then
kill -9 $P_ID
echo "sgzb_modules_system killed success"
fi
echo "--------sgzb_modules_system开始部署1--------------"
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $sgzb_modules_system_jar >/dev/null 2>&1 &
echo "--------sgzb_modules_system开始部署2--------------"
sgzb_modules_system_pid=`lsof -i:$sgzb_modules_system_port|grep "LISTEN"|awk '{print $2}'`
echo "--------sgzb_modules_system开始部署3--------------"
until [ -n "$sgzb_modules_system_pid" ]
do
echo "--------sgzb_modules_system开始部署4--------------"
sgzb_modules_system_pid=`lsof -i:$sgzb_modules_system_port|grep "LISTEN"|awk '{print $2}'`
echo "--------sgzb_modules_system开始部署5--------------"
done
echo "sgzb_modules_system pid is $sgzb_modules_system_pid"
echo "--------sgzb_modules_system 启动成功--------------"