Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created March 10, 2014 17:30
Show Gist options
  • Save marianogg9/9469807 to your computer and use it in GitHub Desktop.
Save marianogg9/9469807 to your computer and use it in GitHub Desktop.
/var/log/varnish/*.log {
missingok
notifempty
sharedscripts
delaycompress
size 512M
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment