]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/imagery/resources/layer.rb
imagery: fork multiple mapserver workers
[chef.git] / cookbooks / imagery / resources / layer.rb
index e60ed7619db339566eb8650343ab8c12dfaf830c..210439b054083eceafef3f809893fd1b3d26d6be 100644 (file)
@@ -55,7 +55,7 @@ action :create do
                 "MS_DEBUGLEVEL" => "1"
     user "imagery"
     group "imagery"
                 "MS_DEBUGLEVEL" => "1"
     user "imagery"
     group "imagery"
-    exec_start "/usr/bin/spawn-fcgi -n -s /run/mapserver-fastcgi/layer-#{layer}.socket -M 0666 -f /usr/lib/cgi-bin/mapserv"
+    exec_start "/usr/bin/spawn-fcgi -n -s /run/mapserver-fastcgi/layer-#{layer}.socket -M 0666 -- /usr/bin/multiwatch -f 4 -- /usr/lib/cgi-bin/mapserv"
     restart "on-failure"
   end
 
     restart "on-failure"
   end