#!/bin/bash
# function:定时重启进程
# author:evanxue
# DEFINE
# 获取tomcat PPID
APPID=$(ps -ef |grep draw-2.3.jar |grep -v 'grep'|awk '{print $2}')
echo "[error]开始重启APP"
kill -9 $APPID # 杀掉APP进程
sleep 1
#APP_startup
nohup java -Xmx256m -jar /home/draw-2.3.jar >> /home/draw.log &