我有一个Debian 7 + uwsgi 1.2.3-debian 我想更改UWSGI日志文件路径,我试过
[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
但是/home/example.com/logs/
是空的。日志文件仍在/var/log/uwsgi/app/example.com.log
在Ubuntu 13.04中,我没有遇到这个问题,我该怎么办?
答案 0 :(得分:1)
可能为时已晚,但debian软件包(至少2.0.7)有一个 / usr / share / uwsgi / init / specific_daemon 文件,其中 - daemonize 是硬编码的。您可以在那里进行更改,或者只删除该行并设置 /usr/share/uwsgi/conf/default.ini 或 /etc/uwsgi/apps-enabled/appname.ini < /强>