]> git.openstreetmap.org Git - chef.git/blob - cookbooks/web/templates/default/logrotate.apache.erb
Use virtual hosts to redirect osm.org for consistency
[chef.git] / cookbooks / web / templates / default / logrotate.apache.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/apache2/*.log {
4   daily
5   missingok
6   rotate 28
7   compress
8   delaycompress
9   notifempty
10   create 640 root adm
11   sharedscripts
12   postrotate
13     /etc/init.d/apache2 reload > /dev/null
14     /usr/bin/rsync --preallocate /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
15   endscript
16 }