X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fvarnish_pkgmirror%2Ffiles%2Fvarnish.logrotate;fp=modules%2Fvarnish_pkgmirror%2Ffiles%2Fvarnish.logrotate;h=afa230ddd68965cc17cfe27ed9d1e0c540b1063b;hb=76ca91bce24ecbcbcc4e62a37aa06fd0fb9f96c7;hp=0000000000000000000000000000000000000000;hpb=46cee04ab06b23ab6e9e4baba655cf470d10cfc4;p=mirror%2Fdsa-puppet.git diff --git a/modules/varnish_pkgmirror/files/varnish.logrotate b/modules/varnish_pkgmirror/files/varnish.logrotate new file mode 100644 index 000000000..afa230ddd --- /dev/null +++ b/modules/varnish_pkgmirror/files/varnish.logrotate @@ -0,0 +1,29 @@ +/var/log/varnish/varnish.log { + daily + rotate 7 + missingok + compress + delaycompress + missingok + postrotate + if [ -d /run/systemd/system ]; then + systemctl -q is-active varnishlog.service || exit 0 + fi + /usr/sbin/invoke-rc.d varnishlog reload > /dev/null + endscript +} + +/var/log/varnish/varnishncsa.log { + daily + rotate 7 + missingok + compress + delaycompress + missingok + postrotate + if [ -d /run/systemd/system ]; then + systemctl -q is-active varnishncsa.service || exit 0 + fi + /usr/sbin/invoke-rc.d varnishncsa reload > /dev/null + endscript +}