deploy
This commit is contained in:
parent
3273e4ba9c
commit
5ee81e6530
|
|
@ -86,17 +86,76 @@ if($sgzb_modules_system_enable);then
|
|||
kill -9 $P_ID
|
||||
echo "sgzb_modules_system killed success"
|
||||
fi
|
||||
echo "--------sgzb_modules_system开始部署1--------------"
|
||||
echo "--------sgzb_modules_system开始部署--------------"
|
||||
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 启动成功--------------"
|
||||
fi
|
||||
|
||||
if($sgzb_modules_base_enable);then
|
||||
echo "--------sgzb_modules_base 开始启动--------------"
|
||||
echo "--------删除sgzb_modules_base开始--------------"
|
||||
P_ID=`ps -ef | grep -w $sgzb_modules_base_jar | grep -v "grep" | awk '{print $2}'`
|
||||
if [ "$P_ID" == "" ]; then
|
||||
echo "===sgzb_modules_base process not exists or stop success"
|
||||
else
|
||||
kill -9 $P_ID
|
||||
echo "sgzb_modules_base killed success"
|
||||
fi
|
||||
echo "--------sgzb_modules_base开始部署--------------"
|
||||
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $sgzb_modules_base_jar >/dev/null 2>&1 &
|
||||
sgzb_modules_base_pid=`lsof -i:$sgzb_modules_base_port|grep "LISTEN"|awk '{print $2}'`
|
||||
until [ -n "$sgzb_modules_base_pid" ]
|
||||
do
|
||||
sgzb_modules_base_pid=`lsof -i:$sgzb_modules_base_port|grep "LISTEN"|awk '{print $2}'`
|
||||
done
|
||||
echo "sgzb_modules_base pid is $sgzb_modules_base_pid"
|
||||
echo "--------sgzb_modules_base 启动成功--------------"
|
||||
fi
|
||||
|
||||
if($sgzb_modules_file_enable);then
|
||||
echo "--------sgzb_modules_file 开始启动--------------"
|
||||
echo "--------删除sgzb_modules_file开始--------------"
|
||||
P_ID=`ps -ef | grep -w $sgzb_modules_file_jar | grep -v "grep" | awk '{print $2}'`
|
||||
if [ "$P_ID" == "" ]; then
|
||||
echo "===sgzb_modules_file process not exists or stop success"
|
||||
else
|
||||
kill -9 $P_ID
|
||||
echo "sgzb_modules_file killed success"
|
||||
fi
|
||||
echo "--------sgzb_modules_file开始部署--------------"
|
||||
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $sgzb_modules_file_jar >/dev/null 2>&1 &
|
||||
sgzb_modules_file_pid=`lsof -i:$sgzb_modules_file_port|grep "LISTEN"|awk '{print $2}'`
|
||||
until [ -n "$sgzb_modules_file_pid" ]
|
||||
do
|
||||
sgzb_modules_file_pid=`lsof -i:$sgzb_modules_file_port|grep "LISTEN"|awk '{print $2}'`
|
||||
done
|
||||
echo "sgzb_modules_file pid is $sgzb_modules_file_pid"
|
||||
echo "--------sgzb_modules_file 启动成功--------------"
|
||||
fi
|
||||
|
||||
if($sgzb_modules_material_enable);then
|
||||
echo "--------sgzb_modules_material 开始启动--------------"
|
||||
echo "--------删除sgzb_modules_material开始--------------"
|
||||
P_ID=`ps -ef | grep -w $sgzb_modules_material_jar | grep -v "grep" | awk '{print $2}'`
|
||||
if [ "$P_ID" == "" ]; then
|
||||
echo "===sgzb_modules_material process not exists or stop success"
|
||||
else
|
||||
kill -9 $P_ID
|
||||
echo "sgzb_modules_material killed success"
|
||||
fi
|
||||
echo "--------sgzb_modules_material开始部署--------------"
|
||||
nohup /usr/lib/jvm/jdk1.8.0_381/bin/java -jar $sgzb_modules_material_jar >/dev/null 2>&1 &
|
||||
sgzb_modules_material_pid=`lsof -i:$sgzb_modules_material_port|grep "LISTEN"|awk '{print $2}'`
|
||||
until [ -n "$sgzb_modules_material_pid" ]
|
||||
do
|
||||
sgzb_modules_material_pid=`lsof -i:$sgzb_modules_material_port|grep "LISTEN"|awk '{print $2}'`
|
||||
done
|
||||
echo "sgzb_modules_material pid is $sgzb_modules_material_pid"
|
||||
echo "--------sgzb_modules_material 启动成功--------------"
|
||||
fi
|
||||
Loading…
Reference in New Issue