Is there any other way to trigger log reopen beside kill -USR1?

Liu Haifeng haifeng.813 at
Thu Jan 24 14:42:27 UTC 2013

Sorry I note that I didn't describe it clearly. I am not looking for another way of log rotating, but afraid of any other 'trigger' make nginx reopen log file unexpectedly, which can break my logic. If its sure that no any hidden trigger other than my script, then my design is ok. I think there won't be such kind of trigger, and I have to make it sure.


On 2013-1-24, at 21:00, Andre Jaenisch <andrejaenisch at> wrote:

> 2013/1/24 Liu Haifeng <haifeng.813 at>:
>> My goal is make the "current" log file renamed with the date pattern immediately, not after one day or other period.
> My first thought would be creating a symbolic (see "man ln") from the
> current log to the log-with-date-within-filename.
> You would just have to change the symlink then … For example like
> this:
> So let access.log point to access.$(date "+%Y%m%d").log (see
> ).
> But I have no nginx running here at the moment.
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list