UWSGI can't change log file path

风流意气都作罢 提交于 2019-12-11 13:05:35

问题


I have a Debian 7 + uwsgi 1.2.3-debian I want to change UWSGI log file path, I tried

[uwsgi]
   plugins = python27
   chdir = /home/example.com/apps/
   pythonpath = /home/example.com/apps/
   env = DJANGO_SETTINGS_MODULE=settings
   module = django.core.handlers.wsgi:WSGIHandler()
   touch-reload = /home/example.com/README.md
   logto  = /home/example.com/logs/uwsgi.logto.log;
   daemonize  = /home/example.com/logs/uwsgi.daemonize.log;
   logdate = true
   max-requests = 5000
   buffer-size = 32768

But /home/example.com/logs/ is empty. Log file is still in /var/log/uwsgi/app/example.com.log

In Ubuntu 13.04 I don't have this problem, what can I do?


回答1:


Might be too late, but debian package (2.0.7 at least) has a /usr/share/uwsgi/init/specific_daemon file where the --daemonize is hardcoded. You can change it there, or just remove that line and set on /usr/share/uwsgi/conf/default.ini or /etc/uwsgi/apps-enabled/appname.ini.



来源:https://stackoverflow.com/questions/22668729/uwsgi-cant-change-log-file-path

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!