I see, thanks.<div><br></div><div>So there is there a small window of time when the logs will not be written or lost?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 15, 2012 at 4:44 AM, Igor Sysoev <span dir="ltr"><<a href="mailto:igor@sysoev.ru" target="_blank">igor@sysoev.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="im"><div><div>On Dec 15, 2012, at 2:10 , S Ahmed wrote:</div><br><blockquote type="cite">
<div class="gmail_extra">m irya,</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks. I'm planning to run 12.04 ubuntu.</div><div class="gmail_extra"><br></div><div class="gmail_extra">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?</div>
<div class="gmail_extra"><br>So step by step, what is to be done?</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. kill -USR1</div><div class="gmail_extra">2. rename file?</div><div class="gmail_extra">
3. kill -USR1 'cat /var/run/nginx.pid'</div><div class="gmail_extra">4. profit</div></blockquote><br></div></div><div>1. rename file</div><div class="gmail_extra">2. kill -USR1 'cat /var/run/nginx.pid'</div>
<div class="gmail_extra">3. sleep 2</div><div class="gmail_extra">4. do everything with the file: gzipping, moving to other host, etc.</div><div><div class="gmail_extra"><br></div></div><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><div style="word-wrap:break-word">
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><br>
--<br>Igor Sysoev<br></span></div><div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Georgia;word-spacing:0px"><a href="http://nginx.com/support.html" target="_blank">http://nginx.com/support.html</a></span></div>
</span></span>
</div>
<br></div><br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>