]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/planet/recipes/dump.rb
Install planetdump-trigger script
[chef.git] / cookbooks / planet / recipes / dump.rb
index 7bd11aecef88497339137e48e5dddb376a6656ca..24c98d9b705a9b279fe0623a7a1ee9c4174d5ad6 100644 (file)
@@ -94,7 +94,7 @@ directory "/store/planetdump" do
   recursive true
 end
 
-%w[planetdump planet-mirror-redirect-update].each do |program|
+%w[planetdump planetdump-trigger planet-mirror-redirect-update].each do |program|
   template "/usr/local/bin/#{program}" do
     source "#{program}.erb"
     owner "root"
@@ -128,6 +128,7 @@ end
 
 service "planetdump-trigger" do
   action [:enable, :start]
+  subscribes :restart, "template[/usr/local/bin/planetdump-trigger]"
 end
 
 systemd_service "planet-dump-mirror" do