X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/5524a5f2a12c63acc122269b928cf28a4b0ce211..37d9e1e2f502de4126fb36357a9c261174512af4:/cookbooks/tilecache/templates/default/logrotate.squid.erb diff --git a/cookbooks/tilecache/templates/default/logrotate.squid.erb b/cookbooks/tilecache/templates/default/logrotate.squid.erb index 2112b85cd..d5db76b2f 100644 --- a/cookbooks/tilecache/templates/default/logrotate.squid.erb +++ b/cookbooks/tilecache/templates/default/logrotate.squid.erb @@ -4,6 +4,7 @@ daily compress compresscmd /usr/bin/xz + compressoptions --threads=<% [ node[:cpu][:total] / 2, 1 ].max.ceil %> uncompresscmd /usr/bin/unxz compressext .xz rotate 2 @@ -14,6 +15,6 @@ test ! -e /var/run/squid.pid || /usr/sbin/squid -k rotate endscript lastaction - /usr/bin/rsync --preallocate /var/log/squid/zere.log.1.xz ironbelly::logs/tile.openstreetmap.org/<%= node[:hostname] %>-`date -d "-1 days" +%Y-%m-%d`.xz || true + /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 endscript }