]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: mapserv bombs with accept mode
authorGrant Slater <git@firefishy.com>
Tue, 5 Oct 2021 22:54:57 +0000 (23:54 +0100)
committerGrant Slater <git@firefishy.com>
Tue, 5 Oct 2021 22:54:57 +0000 (23:54 +0100)
cookbooks/imagery/resources/site.rb

index 128fc2308bb89050e709dc652d03ff6521796994..6cfea3ea4c01381ad01863bba3c6b1aaed987096 100644 (file)
@@ -101,20 +101,20 @@ action :create do
   tile_domains = base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
 
   # FIXME Clean up old service
   tile_domains = base_domains.flat_map { |d| [d, "a.#{d}", "b.#{d}", "c.#{d}"] }
 
   # FIXME Clean up old service
-  service "mapserv-fcgi-#{new_resource.site}" do
+  service "mapserv-fcgi-#{new_resource.site}@" do
     provider Chef::Provider::Service::Systemd
     action [:stop, :disable]
   end
 
   # FIXME Clean up old service
     provider Chef::Provider::Service::Systemd
     action [:stop, :disable]
   end
 
   # FIXME Clean up old service
-  systemd_service "mapserv-fcgi-#{new_resource.site}" do
+  systemd_service "mapserv-fcgi-#{new_resource.site}@" do
     action :delete
   end
 
   systemd_service "mapserv-fcgi-#{new_resource.site}@" do
     description "Map server for #{new_resource.site} layer"
     environment "MS_MAP_PATTERN" => "^/srv/imagery/mapserver/",
     action :delete
   end
 
   systemd_service "mapserv-fcgi-#{new_resource.site}@" do
     description "Map server for #{new_resource.site} layer"
     environment "MS_MAP_PATTERN" => "^/srv/imagery/mapserver/",
-                "MS_DEBUGLEVEL" => "0",
+                "=" => "0",
                 "MS_ERRORFILE" => "stderr",
                 "GDAL_CACHEMAX" => "512"
     limit_nofile 16384
                 "MS_ERRORFILE" => "stderr",
                 "GDAL_CACHEMAX" => "512"
     limit_nofile 16384
@@ -122,7 +122,7 @@ action :create do
     memory_max "1G"
     user "imagery"
     group "imagery"
     memory_max "1G"
     user "imagery"
     group "imagery"
-    exec_start "/usr/lib/cgi-bin/mapserv"
+    exec_start "/usr/bin/multiwatch -f 4 -- /usr/lib/cgi-bin/mapserv"
     standard_input "socket"
     private_tmp true
     private_devices true
     standard_input "socket"
     private_tmp true
     private_devices true
@@ -137,8 +137,6 @@ action :create do
     socket_user "imagery"
     socket_group "imagery"
     listen_stream "/run/mapserver-fastcgi/layer-#{new_resource.site}.socket"
     socket_user "imagery"
     socket_group "imagery"
     listen_stream "/run/mapserver-fastcgi/layer-#{new_resource.site}.socket"
-    accept true
-    max_connections 4
   end
 
   systemd_unit "mapserv-fcgi-#{new_resource.site}.socket" do
   end
 
   systemd_unit "mapserv-fcgi-#{new_resource.site}.socket" do