Welcome! Log In Create A New Profile

Advanced

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

Liu Haifeng
January 25, 2013 05:26AM
I did a test, seams cool, thank you all.

On Jan 25, 2013, at 1:48 AM, Andre Jaenisch <andrejaenisch@googlemail.com> wrote:

> 2013/1/24 Scott Ribe <scott_ribe@elevated-dev.com>:
>> I think the suggestion about the symlink was to make sure that if/when nginx re-opens the file, it's actually opening the file you want it to--an alternative approach to what you're doing, which does not care when the file is re-opened.
>
> Exactly. There's only one file to be opened (this one, which the
> symlink points to) and thus less danger of race conditions.
>
> 2013/1/24 Jan-Philip Gehrcke <jgehrcke@googlemail.com>:
>> Maybe I did not read carefully enough, but instead of relying on the $(date "+%Y%m%d") in the exact moment of renaming the file, you could use the last modification time of the file via. e.g.
>>
>> $ stat -c %y ~/.bashrc | awk '{print $1}'
>> 2012-12-18
>
> My version has no dashes :)
> And you could adjust the modification to not take place at midnight,
> couldn't you?
>
> Regards, André
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

Liu Haifeng January 24, 2013 07:30AM

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

Andre Jaenisch January 24, 2013 08:02AM

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

Liu Haifeng January 24, 2013 09:44AM

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

Scott Ribe January 24, 2013 09:56AM

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

Andre Jaenisch January 24, 2013 12:50PM

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

Liu Haifeng January 25, 2013 05:26AM

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

Jan-Philip Gehrcke January 24, 2013 09:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
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