On Friday, December 16, 2016 at 5:36:37 AM UTC-8, Tomasz Brzezina wrote:
>
> I think, that "problem" is with logrotate - it restarts apache2, so wsgi 
> isn't loaded - first time next day wsgi needs to start...
>

Are you using an explicit "restart" command? If so, you could try "reload" 
or "graceful". 

When I was porting the trac-hacks.org server to a new host I remember 
reviewing the logrotate configuration. There was a post-rotate command to 
restart the server. My memory is fuzzy on it, but I think I read that 
"copytruncate" can be used instead of restarting the server before/after 
rotating the logs. The commands we use now are:

        daily
        copytruncate
        missingok
        rotate 7
        compress
        delaycompress
        notifempty

This looks like the guidance I followed, best I can remember:
http://unix.stackexchange.com/a/47694

- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to