我使用一個主管來運行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