]> git.openstreetmap.org Git - chef.git/commitdiff
Restore use of flush.so for hourly and daily replication
authorTom Hughes <tom@compton.nu>
Sun, 10 Jul 2022 09:56:56 +0000 (10:56 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 10 Jul 2022 09:56:56 +0000 (10:56 +0100)
cookbooks/planet/recipes/replication.rb

index 0a9387d19ca0237f544a44663ad1c06e052d9e8f..a31f98288c3217f71152552f95be266f777a64c7 100644 (file)
@@ -317,6 +317,7 @@ systemd_service "replication-hourly" do
   description "Hourly replication"
   user "planet"
   exec_start "/usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/hour"
+  environment "LD_PRELOAD" => "/opt/flush/flush.so"
   private_tmp true
   private_devices true
   protect_system "full"
@@ -360,6 +361,7 @@ systemd_service "replication-daily" do
   description "Daily replication"
   user "planet"
   exec_start "/usr/local/bin/osmosis -q --merge-replication-files workingDirectory=/var/lib/replication/day"
+  environment "LD_PRELOAD" => "/opt/flush/flush.so"
   private_tmp true
   private_devices true
   protect_system "full"