Problem when logrotate runs on Varnish

Jennings III, Raymond raymond.jennings at nytimes.com
Mon May 18 16:55:53 CEST 2015


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.

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.



/var/nyt/logs/varnish/*_log {
    daily
    missingok
    rotate 7
    compress
    dateext
    compresscmd /usr/bin/bzip2
    compressext .bz2
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/varnishlog.pid 2>/dev/null` 2>
/dev/null || true
        /bin/kill -HUP `cat /var/run/varnishncsa.pid 2>/dev/null` 2>
/dev/null || true
    endscript
    lastaction
        /usr/bin/php /var/nyt/bin/varnish/varnish-copylog-S3.php
>>/tmp/varnish-log-S3.txt 2>&1
    endscript
}


Raymond Jennings III
*nytimes.com <http://nytimes.com/>*
*Office: 212.556.7786 <212-556-7786>*

*iPhone: 914.330.5074 <914-330-5074>E-mail: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>FaceTime: Raymond.Jennings at nytimes.com
<Raymond.Jennings at nytimes.com>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150518/837e5700/attachment.html>


More information about the varnish-misc mailing list