nginx logfile rotation

Ray gunblad3 at
Tue Sep 1 07:10:24 MSD 2009

Is there any way other than killing/restarting the nginx processes?  Am
asking this because it seemed to me that nginx shouldn't need to be
restarted for it to use the new log file, if I didn't read the wiki wrongly.


On Tue, Sep 1, 2009 at 10:11 AM, Jim Ohlstein <jim at> wrote:

> Ray wrote:
>> Am trying to configure for logfile rotation using logrotate with nginx
>> (0.7.61).  As the logrotate script runs, the old logfile is renamed and a
>> new one is created, but nginx still writes to the old (renamed) logfile even
>> with open_log_file_cache set to off according to
>> Is there anything that I'm missing out?
>> Ray.
> kill -USR1 `cat /path/to/`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list