new log file every x minutes

S Ahmed sahmed1020 at gmail.com
Tue Dec 4 19:05:33 UTC 2012


I didn't realize this would so tricky, or "tricky" :)

I was hoping it was just a simple config setting! hehe


On Tue, Dec 4, 2012 at 1:49 PM, Jonathan Matthews
<contact at jpluscplusm.com>wrote:

> On 4 December 2012 18:45, S Ahmed <sahmed1020 at gmail.com> wrote:
> > How do I sent a USR1?  What is that for, it signals to nginx to start a
> new
> > file?
>
> I don't believe so, no. Check
> http://wiki.nginx.org/CommandLine#Stopping_or_Restarting_Nginx
> You'd have to move the log out from under nginx before sending it, I think.
>
> I'd personally use logrotate with a specially SIGUSR1-related config
> stanza if I had to do this, and wouldn't try and write the logic
> myself.
>
> Jonathan
> --
> Jonathan Matthews // Oxford, London, UK
> http://www.jpluscplusm.com/contact.html
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121204/5befddab/attachment.html>


More information about the nginx mailing list