]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tilecache/templates/default/logrotate.squid.erb
tilecache: add basic nginx ssl configuration
[chef.git] / cookbooks / tilecache / templates / default / logrotate.squid.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 /var/log/squid/*.log {
4   daily
5   compress
6   delaycompress
7   rotate 2
8   missingok
9   nocreate
10   sharedscripts
11   postrotate
12     test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
13     /usr/bin/rsync /var/log/squid/zere.log.2.gz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
14   endscript
15 }