by default does nginx just use a single log file?

S Ahmed sahmed1020 at gmail.com
Sat Dec 15 18:20:19 UTC 2012


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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121215/895fc832/attachment.html>


More information about the nginx mailing list