|
@@ -118,7 +118,7 @@ restart(){
|
|
if [ $? -eq "0" ]; then # [$? -eq "0"] 说明pid不等于空 说明服务正在运行中,将进程号打印出来
|
|
if [ $? -eq "0" ]; then # [$? -eq "0"] 说明pid不等于空 说明服务正在运行中,将进程号打印出来
|
|
echo "${APP_NAME} running. pid=${pid}"
|
|
echo "${APP_NAME} running. pid=${pid}"
|
|
else
|
|
else
|
|
- nohup java -jar -Xmx4072M -Xms1024M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${APP_DUMPlOG} -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${APP_DEBUG} ${path}/${APP_NAME} --spring.profiles.active=$1 > logs.log 2>error.log & # 说明pid为空 执行java -jar 命令启动服务
|
|
|
|
|
|
+ nohup java -jar -Djasypt.encryptor.password='4dage168...' -Xmx4072M -Xms1024M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${APP_DUMPlOG} -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=${APP_DEBUG} ${path}/${APP_NAME} --spring.profiles.active=$1 > logs.log 2>error.log & # 说明pid为空 执行java -jar 命令启动服务
|
|
echo "${APP_NAME} started启动"
|
|
echo "${APP_NAME} started启动"
|
|
fi
|
|
fi
|
|
}
|
|
}
|