From: Silvio Rhatto Date: Sun, 23 Nov 2014 12:28:06 +0000 (-0200) Subject: Adding stock logrotate X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=bfbec3f3f9563989b003495cd553c8afa1a1b980;p=puppet-apache.git Adding stock logrotate --- diff --git a/files/logrotate b/files/logrotate new file mode 100644 index 0000000..73cc252 --- /dev/null +++ b/files/logrotate @@ -0,0 +1,18 @@ +/var/log/apache2/*.log { + weekly + missingok + rotate 52 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + /etc/init.d/apache2 reload > /dev/null + endscript + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi; \ + endscript +}