]> git.openstreetmap.org Git - chef.git/commitdiff
imagery: TERM signal for mapserver fastcgi workers
authorGrant Slater <git@firefishy.com>
Mon, 30 May 2016 13:07:30 +0000 (14:07 +0100)
committerGrant Slater <git@firefishy.com>
Mon, 30 May 2016 13:07:30 +0000 (14:07 +0100)
cookbooks/imagery/resources/layer.rb

index db9c395ed7dd44d0218259f54a30bea145364338..f67f13852a71d0ae16547bbbc233c511844facc9 100644 (file)
@@ -54,7 +54,7 @@ action :create do
     user "imagery"
     group "imagery"
     exec_start_pre "/bin/rm -f /run/mapserver-fastcgi/layer-#{layer}.socket"
-    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 4 -- /usr/lib/cgi-bin/mapserv"
+    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 4 --signal=TERM -- /usr/lib/cgi-bin/mapserv"
     pid_file "/run/mapserver-fastcgi/layer-#{layer}.pid"
     type "forking"
     restart "always"