Commit 1108f052 authored by xuezj's avatar xuezj

测试java

parent a3f6d396
......@@ -12,8 +12,6 @@ package_path="${module_path}/app.jar"
config_path="${module_path}/application.properties"
log_path="/home/quant_group/logs"
rm -rf ${log_path}/*
echo 192.168.4.50 eos.quantgroups.com >> /etc/hosts
echo 172.17.1.7 apollo-dev.quantgroups.com >> /etc/hosts
echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
......@@ -63,6 +61,17 @@ fi
echo "$finalCmd" > java_command
# 日志挂载到了/home/logs下
# 创建新目录,并把/home/quant_group/logs指向新目录
if [[ $NAMESPACE == 'cube' || $NAMESPACE == 'fe' ]];then
logdir="/home/logs/${HOSTNAME}"
mkdir -p "${logdir}"
echo "创建日志目录:$logdir"
rm -rf "logs"
ln -s "${logdir}" "${log_path}"
fi
if [[ $DEBUG == 1 ]]; then
echo 'debug'
nohup $finalCmd &
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment