]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: fork multiple mapserver workers
authorGrant Slater <git@firefishy.com>
Sun, 29 May 2016 20:48:47 +0000 (21:48 +0100)
committerGrant Slater <git@firefishy.com>
Sun, 29 May 2016 20:48:47 +0000 (21:48 +0100)
cookbooks/imagery/resources/layer.rb

index e60ed7619db339566eb8650343ab8c12dfaf830c..210439b054083eceafef3f809893fd1b3d26d6be 100644 (file)
@@ -55,7 +55,7 @@ action :create do
                 "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