X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2cb0c3cb0ddd588c3f8c6a9ff9dd3d429a8a49c9..fbd5b7e50e2e6d432f68d8a8d58eb92a0a2b43f6:/cookbooks/planet/recipes/replication.rb diff --git a/cookbooks/planet/recipes/replication.rb b/cookbooks/planet/recipes/replication.rb index 85a3c08d3..51f0e69a2 100644 --- a/cookbooks/planet/recipes/replication.rb +++ b/cookbooks/planet/recipes/replication.rb @@ -216,6 +216,12 @@ systemd_service "replication-minutely" do no_new_privileges true end +systemd_timer "replication-minutely" do + description "Minutely replication" + on_boot_sec 60 + on_unit_active_sec 60 +end + template "/etc/replication/changesets.conf" do source "changesets.conf.erb" user "root" @@ -303,10 +309,8 @@ if node[:planet][:replication] == "enabled" mailto "zerebubuth@gmail.com" end - systemd_timer "replication-minutely" do - description "Minutely replication" - on_boot_sec 60 - on_unit_active_sec 60 + service "replication-minutely.timer" do + action [:enable, :start] end cron_d "replication-minutely" do @@ -344,6 +348,10 @@ else action :delete end + service "replication-minutely.timer" do + action [:stop, :disable] + end + cron_d "replication-minutely" do action :delete end