X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fvarnish%2Ffiles%2Fvarnish.logrotate;fp=modules%2Fvarnish%2Ffiles%2Fvarnish.logrotate;h=afa230ddd68965cc17cfe27ed9d1e0c540b1063b;hb=31a3a9671cd1bc17dba562dea642c62aff3bc7ef;hp=0000000000000000000000000000000000000000;hpb=fc638d271d89c3847ae5ed34629ed43f55b70f1c;p=dsa-puppet.git diff --git a/modules/varnish/files/varnish.logrotate b/modules/varnish/files/varnish.logrotate new file mode 100644 index 00000000..afa230dd --- /dev/null +++ b/modules/varnish/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 +}