X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/e02514cb0c657bc6c6195d20a94296fe6e697bd2..f08ecb186ba2c0763ad2b58c0c9b95424a54cb3b:/cookbooks/web/templates/default/logrotate.apache.erb diff --git a/cookbooks/web/templates/default/logrotate.apache.erb b/cookbooks/web/templates/default/logrotate.apache.erb index 15e529001..b4d171be8 100644 --- a/cookbooks/web/templates/default/logrotate.apache.erb +++ b/cookbooks/web/templates/default/logrotate.apache.erb @@ -10,7 +10,7 @@ create 640 root adm sharedscripts postrotate - /usr/bin/service apache2 reload > /dev/null - /usr/bin/rsync /var/log/apache2/access.log.2.gz ironbelly::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz + /etc/init.d/apache2 reload > /dev/null + /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 endscript }