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:52AM
2009/10/10 Igor Sysoev <is@rambler-co.ru>:
> 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 ?
So,it works correctly now.

# ls -l /proc/30999/fd
total 14
lrwx------ 1 root root 64 Oct 10 10:14 0 -> /dev/null
lrwx------ 1 root root 64 Oct 10 10:14 1 -> /dev/null
lrwx------ 1 root root 64 Oct 10 10:14 10 -> socket:[54758664]
lrwx------ 1 root root 64 Oct 10 10:14 11 -> socket:[54758665]
lrwx------ 1 root root 64 Oct 10 10:14 12 -> socket:[54758667]
lrwx------ 1 root root 64 Oct 10 10:14 13 -> socket:[54758668]
l-wx------ 1 root root 64 Oct 10 10:14 14 ->
/usr/local/nginx/logs/host.access.log
l-wx------ 1 root root 64 Oct 10 10:14 2 -> /usr/local/nginx/logs/error.log
lrwx------ 1 root root 64 Oct 10 10:14 3 -> socket:[54758658]
l-wx------ 1 root root 64 Oct 10 10:14 4 -> /usr/local/nginx/logs/error.log
lrwx------ 1 root root 64 Oct 10 10:14 6 -> socket:[54758656]
lrwx------ 1 root root 64 Oct 10 10:14 7 -> socket:[54758659]
lrwx------ 1 root root 64 Oct 10 10:14 8 -> socket:[54758661]
lrwx------ 1 root root 64 Oct 10 10:14 9 -> socket:[54758662]


--
Ren Xiaolei
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: 200
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