From 0531e92130abf093e49a929578f7b1c73d02f1dd Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 24 May 2011 10:21:10 +0000 Subject: add logrotate config --- modules/apache/templates/logrotate | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 modules/apache/templates/logrotate (limited to 'modules/apache/templates/logrotate') diff --git a/modules/apache/templates/logrotate b/modules/apache/templates/logrotate new file mode 100644 index 00000000..56805675 --- /dev/null +++ b/modules/apache/templates/logrotate @@ -0,0 +1,13 @@ +/var/log/httpd/*_log /var/log/httpd/apache_runtime_status /var/log/httpd/ssl_mutex { + rotate 5 + monthly + missingok + notifempty + nocompress + prerotate + /etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 || : + endscript + postrotate + /etc/rc.d/init.d/httpd closelogs > /dev/null 2>&1 || : + endscript +} -- cgit v1.2.1