[uWSGI] best way of using logrotate

Tim Tisdall tisdall at gmail.com
Mon Apr 13 18:04:42 CEST 2015


On Mon, Apr 13, 2015 at 11:59 AM, Tim Tisdall <tisdall at gmail.com> wrote:
> The uwsgi option of "touch-logreopen" seems like a good method, but
> what's the best file to use to monitor for a "touch"?  I was thinking
> that maybe I could point it to the .log.1 file that logrotate would
> copy the file over to.  Does the option work correctly if that file
> isn't yet there?

unable to stat() /var/log/uwsgi/project.log.1, events will be
triggered as soon as the file is created

Okay, that seems to answer that question...  Is that method fragile,
though?  Is anyone else doing it this way?  ^_^


More information about the uWSGI mailing list