pid=`ps -ef|grep ‘yourprojectname' |grep -v 'grep'| awk '{print $2}'`kill -9 $pidecho "killing..."nohup java -jar yourprojectname.jar &tail -f nohup.out