summaryrefslogtreecommitdiff
path: root/files/logrotate
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-11-23 10:28:06 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-11-23 10:28:06 -0200
commitbfbec3f3f9563989b003495cd553c8afa1a1b980 (patch)
tree1b5f8badaed62c6aa1c8abb7ca612afa6617d67d /files/logrotate
parentf815712b22010de23cc5ec255c6b1a15ca28b1c8 (diff)
downloadpuppet-apache-bfbec3f3f9563989b003495cd553c8afa1a1b980.tar.gz
puppet-apache-bfbec3f3f9563989b003495cd553c8afa1a1b980.tar.bz2
Adding stock logrotate
Diffstat (limited to 'files/logrotate')
-rw-r--r--files/logrotate18
1 files changed, 18 insertions, 0 deletions
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
+}