Flush log buffers on reload

Markus Jelsma markus.jelsma at openindex.io
Wed Oct 3 12:45:55 UTC 2012


Thanks! 
 
-----Original message-----
> From:Maxim Dounin <mdounin at mdounin.ru>
> Sent: Wed 03-Oct-2012 14:41
> To: nginx at nginx.org
> Subject: Re: Flush log buffers on reload
> 
> Hello!
> 
> On Wed, Oct 03, 2012 at 11:50:17AM +0000, Markus Jelsma wrote:
> 
> > It seems that Nginx does not flush the log buffers to disk on 
> > reload but it would be really helpful if it could. Is there any 
> > trick to flush the buffers to disk on reload?
> 
> Log buffers are flushed by a shutting down nginx worker process 
> once there are no more requests in progress and it's going to 
> exit.  If it's not enough in your use case, you may use logrotate 
> signal (USR1) flush log buffers at any time you want.
> 
> -- 
> Maxim Dounin
> http://nginx.com/support.html
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 



More information about the nginx mailing list