kill.sh 172 B

12345678
  1. #!/bin/sh
  2. APP_NAME=fuint-server
  3. tpid=`ps -ef|grep $APP_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
  4. if [ ${tpid} ]; then
  5. echo 'Kill Process!'
  6. kill -9 $tpid
  7. fi