Welcome! Log In Create A New Profile

Advanced

Re: Flush log buffers on reload

Maxim Dounin
October 03, 2012 08:38AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Flush log buffers on reload

Markus Jelsma October 03, 2012 07:48AM

Re: Flush log buffers on reload

Maxim Dounin October 03, 2012 08:38AM

RE: Flush log buffers on reload

Markus Jelsma October 03, 2012 08:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready