不能由主管重新启动gunicorn

问题描述 投票:0回答:1

当我运行“supervisorctl status hitbot”然后我面对此错误致命退出太快(进程日志可能有详细信息) #/ bin / gunicorn_start这里** BIND = ip_address:port ** gunicorn_start

/etc/supervisor/conf.d/hitbot.conf hitbot.conf

但是,当我输入这些命令error

在日志文件error log

但是当它通过“bash / bin / gunicorn_start”测试gunicorn_start时*然后它正常工作testing

python django gunicorn supervisor
1个回答
0
投票

试试这个命令:pkill -HUP gunicorn

Gunicorn docs:http://docs.gunicorn.org/en/stable/faq.html

“你可以通过向gunicorn发送HUP信号来优雅地重新加载:$ kill -HUP masterpid

或者使用完整的命令行:

pkill -HUP -f '/usr/bin/python /usr/bin/gunicorn -w 5 -b 127.0.0.1:5000 myapp:app'

© www.soinside.com 2019 - 2024. All rights reserved.