]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/logrotate.apache.erb
Revert "palulukon: Allow access to AWS IP metadata NTP service"
[chef.git] / cookbooks / web / templates / default / logrotate.apache.erb
index 6b8a6615e236cd62916fad399c1de7f2ea30be21..e2870c3b9d50a8f483bb929baff0509a198a9c69 100644 (file)
@@ -10,7 +10,7 @@
   create 640 root adm
   sharedscripts
   postrotate
   create 640 root adm
   sharedscripts
   postrotate
-    /usr/bin/service apache2 reload > /dev/null
-    /usr/bin/rsync /var/log/apache2/access.log.2.gz horntail::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 backup.openstreetmap.org::logs/www.openstreetmap.org/<%= node[:hostname] %>-`date -d "-2 days" +%Y-%m-%d`.gz
   endscript
 }
   endscript
 }