<div dir="ltr">I get an outage at midnight when logrotate runs on the Varnish logs. I don't see anything in syslog but I do get various alerts from Nagios, etc.<div><br></div><div>I have the following logrotate for Varnish. I see others where they use USR1 instead of HUP - not sure if that makes a difference. Anything else I could look for. It smells of a "timing issue" but not much to go on or prove my hunch.<br></div><div><br></div><div><br></div><div><br></div><div><div>/var/nyt/logs/varnish/*_log {</div><div> daily</div><div> missingok</div><div> rotate 7</div><div> compress</div><div> dateext</div><div> compresscmd /usr/bin/bzip2</div><div> compressext .bz2</div><div> sharedscripts</div><div> postrotate</div><div> /bin/kill -HUP `cat /var/run/varnishlog.pid 2>/dev/null` 2> /dev/null || true</div><div> /bin/kill -HUP `cat /var/run/varnishncsa.pid 2>/dev/null` 2> /dev/null || true</div><div> endscript</div><div> lastaction</div><div> /usr/bin/php /var/nyt/bin/varnish/varnish-copylog-S3.php >>/tmp/varnish-log-S3.txt 2>&1</div><div> endscript</div><div>}</div><div><br></div><div><br></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-weight:bold"><span style="white-space:pre-wrap"><u> </u></span></div><div style="color:rgb(0,0,0)"><font face="Helvetica"><span style="font-size:12px">Raymond Jennings III</span></font></div></div><span style="color:rgb(0,0,0);text-align:-webkit-auto;font-family:Helvetica"><font face="Rockwell Extra Bold" style="font-size:19px"><b><a href="http://nytimes.com/" style="color:rgb(17,85,204)" target="_blank">nytimes.com</a></b></font><br></span><div style="color:rgb(0,0,0);font-family:Helvetica"><span style="text-align:-webkit-auto"><span style="font-size:12px;text-align:-webkit-auto"><b><div style="display:inline!important">Office:<span style="font-weight:normal"> <a href="tel:212-556-7786" target="_blank">212.556.7786</a></span></div></b></span><span style="text-align:-webkit-auto"><span style="text-align:-webkit-auto"><b style="font-size:12px;text-align:-webkit-auto"><div>iPhone:<span style="font-weight:normal"> <a href="tel:914-330-5074" target="_blank">914.330.5074</a></span></div><div><b style="font-size:13px">E-mail: </b><a href="mailto:Raymond.Jennings@nytimes.com" style="font-size:13px;font-weight:normal;color:rgb(17,85,204)" target="_blank">Raymond.Jennings@nytimes.com</a><br></div><div>FaceTime:<span style="font-weight:normal"> <a href="mailto:Raymond.Jennings@nytimes.com" style="color:rgb(17,85,204)" target="_blank">Raymond.Jennings@nytimes.com</a></span></div></b></span></span></span></div></div></div></div></div></div></div></div></div></div>
</div></div></div>