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

Scott Ribe scott_ribe at elevated-dev.com
Thu Jan 24 14:55:45 UTC 2013


On Jan 24, 2013, at 7:42 AM, Liu Haifeng wrote:

> Sorry I note that I didn't describe it clearly. I am not looking for another way of log rotating, but afraid of any other 'trigger' make nginx reopen log file unexpectedly, which can break my logic. If its sure that no any hidden trigger other than my script, then my design is ok. I think there won't be such kind of trigger, and I have to make it sure.

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.

-- 
Scott Ribe
scott_ribe at elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






More information about the nginx mailing list