stop.sh 319 B

12345678910111213
  1. #!/bin/bash
  2. PATH=/usr/bin:/sbin:/bin:/usr/sbin
  3. export PATH
  4. deactivate
  5. echo -n $"Stopping openai-on-wechat: "
  6. pid=`ps -ef |grep "/data/wework/app/app.py" |grep -v grep |awk '{print $2}'`
  7. if [ ! "$pid" ];then
  8. echo "openai-on-wechat is not running"
  9. else
  10. kill -9 $pid
  11. echo "stop openai-on-wechat ok. pid is: $pid"
  12. fi