dataCenter jars path

This commit is contained in:
Ubuntu 2024-01-30 16:41:58 +08:00
parent 5f7ae326bc
commit d92fadf707
3 changed files with 6 additions and 6 deletions

View File

@ -79,7 +79,7 @@ function compare(){
function restart(){
sleep 4
systemctl restart $serviceName
#systemctl restart $serviceName
if [ $? -ne 0 ]; then
echo "error: systemctl restart ${serviceName} failed!"
sleep 3

View File

@ -23,11 +23,11 @@ function startModule()
moduleName=$1
if [ ! -f "${moduleName}.jar" ];then
echo "startDtaCenter 文件 ${moduleName}.jar 不存在1!"
if [ ! -f jars/"${moduleName}.jar" ];then
echo "startDtaCenter 文件 jars/${moduleName}.jar 不存在1!"
else
#${JAVA_HOME}bin/java -Xms256m -Xmx512m -Xss512K -Dspring.profiles.active=${profile} -Dspring.config.location=file:${dataCenterPath}/config/ -jar jars/${moduleName}.jar &
/usr/bin/java -Dspring.profiles.active=${profile} -jar ${moduleName}.jar &
/usr/bin/java -Dspring.profiles.active=${profile} -jar jars/${moduleName}.jar &
# > logs/${moduleName}.log &
echo "${!}" > pids/common/${moduleName}.pid
fi

View File

@ -7,8 +7,8 @@ profile=$2
function startModule()
{
moduleName=$1
if [ ! -f "$moduleName".jar ];then
echo startDtaCenter 文件 $(pwd)/${moduleName} 不存在1!
if [ ! -f jars/"$moduleName".jar ];then
echo startDtaCenter 文件 $(pwd)/jars/${moduleName} 不存在1!
exit 0
fi