startup.sh 197 B

123456789
  1. echo "Stopping gen.jar"
  2. pid=`ps -ef | grep gen.jar | grep -v grep | awk '{print $2}'`
  3. if [ -n "$pid" ]
  4. then
  5. echo "stop pid:" $pid
  6. kill -9 $pid
  7. fi
  8. nohup java -jar -Xms128m -Xmx128m gen.jar &