summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}