1 # DO NOT EDIT - This file is being maintained by Chef
3 description "starts mapserver in daemon mode for fastcgi"
5 start on (net-device-up
8 stop on runlevel [!2345]
12 limit nofile 16384 16384
14 # https://trac.osgeo.org/mapserver/wiki/EnvironmentVariables
15 env MS_MAPFILE="/srv/imagery/mapserver/layer-<%= @name %>.map"
16 env MS_MAP_PATTERN="^/srv/imagery/mapserver/"
17 env MS_ERRORFILE="/tmp/mapserver-layer-<%= @name %>.log"
21 mkdir -p -m 0775 /var/run/mapserver-fastcgi
22 chown imagery:imagery /var/run/mapserver-fastcgi
26 exec /usr/bin/spawn-fcgi \
30 -s /var/run/mapserver-fastcgi/layer-<%= @name %>.socket \
32 -f /usr/lib/cgi-bin/mapserv