X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7426769ee7efed7e0559a58bb5e9bfd9f43d6c2a..4937cb3f874eb62ce184db287d45d26a2311ccff:/cookbooks/imagery/templates/default/mapserv_fcgi.conf.erb diff --git a/cookbooks/imagery/templates/default/mapserv_fcgi.conf.erb b/cookbooks/imagery/templates/default/mapserv_fcgi.conf.erb index 9f6e25093..4e71350fb 100644 --- a/cookbooks/imagery/templates/default/mapserv_fcgi.conf.erb +++ b/cookbooks/imagery/templates/default/mapserv_fcgi.conf.erb @@ -9,9 +9,6 @@ stop on runlevel [!2345] respawn -setuid imagery -setgid imagery - limit nofile 16384 16384 # https://trac.osgeo.org/mapserver/wiki/EnvironmentVariables @@ -20,9 +17,16 @@ env MS_MAP_PATTERN="^/srv/imagery/mapserver/" env MS_ERRORFILE="/tmp/mapserver-layer-<%= @name %>.log" env MS_DEBUGLEVEL="5" +pre-start script + mkdir -p -m 0775 /var/run/mapserver-fastcgi + chown imagery:imagery /var/run/mapserver-fastcgi +end script + script exec /usr/bin/spawn-fcgi \ -n \ + -u imagery \ + -g imagery \ -s /var/run/mapserver-fastcgi/layer-<%= @name %>.socket \ -M 0666 \ -f /usr/lib/cgi-bin/mapserv