shutdown.sh 168 B

123456789
  1. #!/bin/sh
  2. # 关闭服务
  3. pid=$(ps -ef | grep gen.jar | grep -v grep | awk '{print $2}')
  4. if [ -n "$pid" ]; then
  5. echo "stop gen.jar, pid:" "$pid"
  6. kill -9 "$pid"
  7. fi