pjibot_delivery-xosc-nohup.sh 539 B

1234567
  1. #!/bin/bash
  2. BASE_DIR="/mnt/disk001/dcl_data_process"
  3. rm -rf "${BASE_DIR}/build/pjibot_delivery-xosc/" # 删除旧的可执行文件
  4. rm -rf "${BASE_DIR}/log/pjibot_delivery-xosc.out"
  5. rm -rf "${BASE_DIR}/log/pjibot_delivery-xosc.log"
  6. pyinstaller --onefile --distpath "${BASE_DIR}/build/pjibot_delivery-xosc/" "${BASE_DIR}/src/python2/pjibot_delivery/pjibot_delivery-xosc.py"
  7. nohup "${BASE_DIR}/build/pjibot_delivery-xosc/pjibot_delivery-xosc" "${BASE_DIR}/config/pjibot_delivery-xosc.yaml" > "${BASE_DIR}/log/pjibot_delivery-xosc.out" 2>&1 &