提交 b291c82d authored 作者: mrunyu's avatar mrunyu

q

上级 2541e3b2
......@@ -2,7 +2,8 @@
APP1_NAME=jenkins_test-0.0.1-SNAPSHOT
DIR_PATH=/var/lib/jenkins/workspace/mry_test/mry_test/target
id=`ps -ef|grep $APP1_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ $id ]; then
if [ $id ];
then
kill -9 $id
fi
nohup java -jar $DIR_PATH/$APP1_NAME.jar > nohup.out & 2>&1 &
\ No newline at end of file
nohup java -jar $DIR_PATH/$APP1_NAME.jar > nohup.out 2>&1 &
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论