]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: fork spawn-fcgi with pid
authorGrant Slater <git@firefishy.com>
Sun, 29 May 2016 22:10:59 +0000 (23:10 +0100)
committerGrant Slater <git@firefishy.com>
Sun, 29 May 2016 22:10:59 +0000 (23:10 +0100)
cookbooks/imagery/resources/layer.rb

index 685631dc69d6214a925034410dbe344402421632..fb11868439a14ea0310cb0a1f4f24332ae047292 100644 (file)
@@ -53,8 +53,10 @@ action :create do
                 "MS_MAP_PATTERN" => "^/srv/imagery/mapserver/"
     user "imagery"
     group "imagery"
-    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"
+    exec_start "/usr/bin/spawn-fcgi -s /run/mapserver-fastcgi/layer-#{layer}.socket -M 0666 -P /run/mapserver-fastcgi/layer-#{layer}.pid -- /usr/bin/multiwatch -f 6 -- /usr/lib/cgi-bin/mapserv"
+    pid_file "/run/mapserver-fastcgi/layer-#{layer}.pid"
+    type "forking"
+    restart "always"
   end
 
   service "mapserv-fcgi-#{layer}" do