Add an example sysutils/supervisor configuration snippet as it's waaaays

better than using spawn-fcgi...
This commit is contained in:
landry 2017-11-22 08:16:30 +00:00
parent 623bed6f57
commit 3feaf4658e
2 changed files with 15 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.51 2017/11/21 20:35:40 landry Exp $ # $OpenBSD: Makefile,v 1.52 2017/11/22 08:16:30 landry Exp $
MULTI_PACKAGES= -utils -main -php -perl MULTI_PACKAGES= -utils -main -php -perl
@ -14,6 +14,7 @@ PKGNAME-utils= mapserver-utils-${V}
PKGNAME-php= php-mapscript-${V} PKGNAME-php= php-mapscript-${V}
PKGNAME-perl= p5-mapscript-${V} PKGNAME-perl= p5-mapscript-${V}
SHARED_LIBS += mapserver 2.0 SHARED_LIBS += mapserver 2.0
README-main = 0
CATEGORIES= geo www CATEGORIES= geo www

View File

@ -1,4 +1,4 @@
$OpenBSD: README-main,v 1.2 2014/05/18 09:29:50 landry Exp $ $OpenBSD: README-main,v 1.3 2017/11/22 08:16:30 landry Exp $
+----------------------------------------------------------------------- +-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD | Running ${FULLPKGNAME} on OpenBSD
@ -21,3 +21,15 @@ script and add the following lines to you nginx.conf:
fastcgi_param SCRIPT_FILENAME /cgi-bin/mapserv; fastcgi_param SCRIPT_FILENAME /cgi-bin/mapserv;
include fastcgi_params; include fastcgi_params;
} }
Another option is to use sysutils/supervisor to start a FastCGI process
pool, using this configuration snippet in ${SYSCONFDIR}/supervisord.d/mapserv.ini:
[fcgi-program:mapserv]
command=/var/www/cgi-bin/mapserv
socket=unix:///var/www/run/%(program_name)s.sock
socket_owner=www
socket_mode=0700
process_name=%(process_num)02d
numprocs=5
user=www