Welcome! Log In Create A New Profile

Advanced

Re: error_log cannot be reopened when kill a USR1 signal

All files from this thread

File Name File Size   Posted by Date  
patch.builin.log.txt 539 bytes open | download Igor Sysoev 10/09/2009 Read message
October 10, 2009 02:30AM
On Sat, Oct 10, 2009 at 09:44:09AM +0800, 任晓磊 wrote:

> After patched, nginx would not keep error.log.1 open, but still keep
> three error.log open.
> Should it work this way?

nginx should keep open two error.log files, one of them is stderr
redirection, and its files descriptor number is always 2:

l-wx------ 1 root root 64 Oct 9 11:08 2 -> /usr/local/nginx/logs/error.log

Could you post the current open files state ?

> 2009/10/9 Igor Sysoev <is@rambler-co.ru>:
> > The attached patch fixes the bug. The bug had appeared somewhere in 0.7.x,
> > probably in 0.7.53, however, I'm not sure.
>
> --
> Ren Xiaolei


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

error_log cannot be reopened when kill a USR1 signal

任晓磊 October 08, 2009 11:16PM

Re: error_log cannot be reopened when kill a USR1 signal

Maxim Dounin October 09, 2009 07:02AM

Re: error_log cannot be reopened when kill a USR1 signal

Igor Sysoev October 09, 2009 08:52AM

Re: error_log cannot be reopened when kill a USR1 signal Attachments

Igor Sysoev October 09, 2009 10:10AM

Re: error_log cannot be reopened when kill a USR1 signal

任晓磊 October 09, 2009 02:14PM

Re: error_log cannot be reopened when kill a USR1 signal

任晓磊 October 09, 2009 09:48PM

Re: error_log cannot be reopened when kill a USR1 signal

任晓磊 October 09, 2009 09:48PM

Re: error_log cannot be reopened when kill a USR1 signal

Igor Sysoev October 10, 2009 02:30AM

Re: error_log cannot be reopened when kill a USR1 signal

任晓磊 October 10, 2009 02:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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