shutdown.sh 200 B

12345678
  1. echo "Stopping generator-1.0.0-SNAPSHOT.jar"
  2. pid=`ps -ef | grep generator-1.0.0-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
  3. if [ -n "$pid" ]
  4. then
  5. echo "kill -9 的id:" $pid
  6. kill -9 $pid
  7. fi