From bfbec3f3f9563989b003495cd553c8afa1a1b980 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 23 Nov 2014 10:28:06 -0200 Subject: Adding stock logrotate --- files/logrotate | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 files/logrotate (limited to 'files/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 +} -- cgit v1.2.3