]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Adding stock logrotate
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Nov 2014 12:28:06 +0000 (10:28 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 23 Nov 2014 12:28:06 +0000 (10:28 -0200)
files/logrotate [new file with mode: 0644]

diff --git a/files/logrotate b/files/logrotate
new file mode 100644 (file)
index 0000000..73cc252
--- /dev/null
@@ -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
+}