12345678910111213141516
  1. #!/bin/bash
  2. #后台运行Chat_on_webchat执行脚本
  3. cd `dirname $0`/..
  4. export BASE_DIR=`pwd`
  5. echo $BASE_DIR
  6. # check the nohup.out log output file
  7. if [ ! -f "${BASE_DIR}/nohup.out" ]; then
  8. touch "${BASE_DIR}/nohup.out"
  9. echo "create file ${BASE_DIR}/nohup.out"
  10. fi
  11. nohup python3 "${BASE_DIR}/app.py" & tail -f "${BASE_DIR}/nohup.out"
  12. echo "Chat_on_webchat is starting,you can check the ${BASE_DIR}/nohup.out"