start.sh 156 B

123456
  1. #!/bin/sh
  2. pid=$(ps -elf | grep $(pwd) | grep -v grep | awk '{print $4}')
  3. if [ "$pid"x != ""x ]; then
  4. kill -9 $pid
  5. fi
  6. nohup python main.py --production &