new log file every x minutes

Jonathan Matthews contact at
Tue Dec 4 18:49:15 UTC 2012

On 4 December 2012 18:45, S Ahmed <sahmed1020 at> 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
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

Jonathan Matthews // Oxford, London, UK

More information about the nginx mailing list