我使用一个主管来运行uWSGI应用程序。为什么uWSGI应用程序在停止监督员之后并不总是停止? 主管配置:如何使用主管启动/停止uWSGI应用程序?
[program:test]
autostart = true
user=root
command=uwsgi --master --workers 5 --disable-logging --socket 127.0.0.1:8888
--module web --callable app
priority=1
redirect_stderr=true
stdout_logfile = /data/log
为什么它的泄气? –
因为只有在使用主管时才需要此选项。在主管的配置中修改主管的行为更好。 – Raz
我对这两种方法都没有什么经验,但是当我正在寻找正确的配置时,我发现了几个显然只能通过使用'die-on-term'来解决的问题的例子,例如http://stackoverflow.com/a/22213404/202168 https://github.com/unbit/uwsgi/issues/296 – Anentropic