Re: Preferred method to reopen the log with logrotate

2022-06-01 Thread Maxim Dounin
Hello! On Wed, Jun 01, 2022 at 08:07:13AM -0700, Roger Fischer wrote: > Hello, > > there seem to be two methods to tell nginx to re-open the log > file after the file was rotated (we use logrotate). > > 1) nginx -s reopen > > 2) kill -USR1 > > Which is the preferred method, and why. > > I a

Preferred method to reopen the log with logrotate

2022-06-01 Thread Roger Fischer
Hello, there seem to be two methods to tell nginx to re-open the log file after the file was rotated (we use logrotate). 1) nginx -s reopen 2) kill -USR1 Which is the preferred method, and why. I am asking because we have seen nginx -s reopen failing because of a transient issue with the con