]> git.openstreetmap.org Git - chef.git/blob - cookbooks/tilecache/templates/default/logrotate.squid.erb
Don't forward host specific requests to siblings
[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   compresscmd /usr/bin/xz
7   uncompresscmd /usr/bin/unxz
8   compressext .xz
9   rotate 2
10   missingok
11   nocreate
12   sharedscripts
13   postrotate
14     test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate
15   endscript
16   lastaction
17     /usr/bin/rsync --preallocate /var/log/squid/access.log.1.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-1 days" +%Y-%m-%d`.xz || true
18   endscript
19 }