diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-11-23 10:28:06 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-11-23 10:28:06 -0200 |
commit | bfbec3f3f9563989b003495cd553c8afa1a1b980 (patch) | |
tree | 1b5f8badaed62c6aa1c8abb7ca612afa6617d67d /files | |
parent | f815712b22010de23cc5ec255c6b1a15ca28b1c8 (diff) | |
download | puppet-apache-bfbec3f3f9563989b003495cd553c8afa1a1b980.tar.gz puppet-apache-bfbec3f3f9563989b003495cd553c8afa1a1b980.tar.bz2 |
Adding stock logrotate
Diffstat (limited to 'files')
-rw-r--r-- | files/logrotate | 18 |
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 +} |