网站管理里面的Python项目现在很完善了,但没有进程管理的选项, 重启服务器,Python项目不能自动重启
进程管理器配置文件如下:
- [program:bot]
- command=/www/wwwlogs/python/bot/fabcaa97871555b68aa095335975e613_venv/bin/gunicorn -c /www/wwwroot/tg.demotestpro.com/bot/gunicorn_conf.py app:app &>> /www/wwwlogs/python/bot/gunicorn_error.log
- directory=/www/wwwroot/tg.demotestpro.com/bot
- autorestart=true
- startsecs=3
- startretries=3
- stdout_logfile=/www/server/panel/plugin/supervisor/log/bot.out.log
- stderr_logfile=/www/server/panel/plugin/supervisor/log/bot.err.log
- stdout_logfile_maxbytes=2MB
- stderr_logfile_maxbytes=2MB
- user=root
- priority=999
- numprocs=1
- process_name=%(program_name)s_%(process_num)02d
复制代码
|
|