supervisor 某路径下执行文件

[program:translation-en-correct-worker]
command=/bin/bash -c 'source ~/.bashrc && cd /home/ubuntu/sentence_correct_v2 && python score_api.py --sleep=3 --tries=3'
autostart=true
autorestart=true
user=ubuntu
numprocs=1
redirect_stderr=true
stdout_logfile=/home/ubuntu/sentence_correct_v2/worker.log

启动

sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl start translation-en-correct-worker

你可能感兴趣的:(supervisor 某路径下执行文件)