Welcome! Log In Create A New Profile

Advanced

Re: by default does nginx just use a single log file?

December 15, 2012 03:32PM
No, logs are always written either in renamed old file or created newly by master process.
There is window between sending signal and reopening new files by worker processes.


--
Igor Sysoev
http://nginx.com/support.html

On Dec 15, 2012, at 22:20 , S Ahmed wrote:

> I see, thanks.
>
> So there is there a small window of time when the logs will not be written or lost?
>
>
> On Sat, Dec 15, 2012 at 4:44 AM, Igor Sysoev <igor@sysoev.ru> wrote:
> On Dec 15, 2012, at 2:10 , S Ahmed wrote:
>
>> m irya,
>>
>> Thanks. I'm planning to run 12.04 ubuntu.
>>
>> What exactly does 're-opening' of a log file mean? Isn't it already open, meaning nginx has it open and is appending to it?
>>
>> So step by step, what is to be done?
>>
>> 1. kill -USR1
>> 2. rename file?
>> 3. kill -USR1 'cat /var/run/nginx.pid'
>> 4. profit
>
> 1. rename file
> 2. kill -USR1 'cat /var/run/nginx.pid'
> 3. sleep 2
> 4. do everything with the file: gzipping, moving to other host, etc.
>
>
> --
> Igor Sysoev
> http://nginx.com/support.html
>
>
> _______________________________________________
> 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

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

by default does nginx just use a single log file?

S Ahmed December 14, 2012 03:02PM

Re: by default does nginx just use a single log file?

Francis Daly December 14, 2012 03:22PM

Re: by default does nginx just use a single log file?

S Ahmed December 14, 2012 04:12PM

Re: by default does nginx just use a single log file?

m irya December 14, 2012 04:44PM

Re: by default does nginx just use a single log file?

S Ahmed December 14, 2012 05:12PM

Re: by default does nginx just use a single log file?

Igor Sysoev December 15, 2012 04:46AM

Re: by default does nginx just use a single log file?

S Ahmed December 15, 2012 01:22PM

Re: by default does nginx just use a single log file?

Igor Sysoev December 15, 2012 03:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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