X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9c080effa5bab5aa01d3c911e32e938123a29787..9e3d78bd62cf801247bfb65f4764fd2eb44c03fe:/cookbooks/imagery/resources/site.rb diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 11bb8b646..5c6f05927 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -129,7 +129,7 @@ action :create do end - # Ensure service is stopped else socket cannot reload + # Ensure service is stopped because otherwise the socket cannot reload service "mapserv-fcgi-#{new_resource.site}" do provider Chef::Provider::Service::Systemd action :nothing @@ -137,7 +137,7 @@ action :create do subscribes :stop, "systemd_socket[mapserv-fcgi-#{new_resource.site}]" end - systemd_unit 'mapserv-fcgi-#{new_resource.site}.socket' do + systemd_unit "mapserv-fcgi-#{new_resource.site}.socket" do action [:enable, :start] subscribes :restart, "systemd_socket[mapserv-fcgi-#{new_resource.site}]" end