Merge remote-tracking branch 'github/pull/345'
[chef.git] / cookbooks / planet / templates / default / logrotate.apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/apache2/*.log {
4         weekly
5         missingok
6         rotate 52
7         compress
8         delaycompress
9         notifempty
10         create 640 root adm
11         sharedscripts
12         postrotate
13                 /etc/init.d/apache2 reload > /dev/null
14                 rsync --preallocate /var/log/apache2/planet.openstreetmap.org-access.log.2.gz ironbelly::logs/planet.openstreetmap.org/`date -d "-7 days" +%Y-%m-%d`.gz
15         endscript
16         prerotate
17                 if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
18                         run-parts /etc/logrotate.d/httpd-prerotate; \
19                 fi; \
20         endscript
21 }