]> git.openstreetmap.org Git - chef.git/commitdiff
Preload flush.so when running osmosis
authorTom Hughes <tom@compton.nu>
Wed, 7 Sep 2016 10:30:12 +0000 (11:30 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 7 Sep 2016 10:30:12 +0000 (11:30 +0100)
cookbooks/planet/templates/default/replication.cron.erb

index 439de398348f9905e232c106208626be7e6d3c4a..84ee83c7cc196eb416e07ac455cdfd04e2995452 100644 (file)
@@ -2,13 +2,14 @@
 
 TZ=UTC
 
+MAILTO=zerebubuth@gmail.com
+
+0 7 * * * planet /usr/local/bin/users-agreed
+* * * * * planet /usr/local/bin/replicate-changesets /etc/replication/changesets.conf
+
 MAILTO=brett@bretth.com
+LD_PRELOAD=/opt/flush/flush.so
 
 * * * * * planet /usr/local/bin/osmosis -q --replicate-apidb authFile=/etc/replication/auth.conf validateSchemaVersion=false --write-replication workingDirectory=/store/planet/replication/minute
 2 * * * * planet /home/bretth/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour
 5 * * * * planet /home/bretth/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day
-
-MAILTO=zerebubuth@gmail.com
-
-0 7 * * * planet /usr/local/bin/users-agreed
-* * * * * planet /usr/local/bin/replicate-changesets /etc/replication/changesets.conf