dataCenter jars path
This commit is contained in:
parent
5f7ae326bc
commit
d92fadf707
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user