summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2009-04-03 18:18:13 +0000
committerThilo Bangert <bangert@gentoo.org>2009-04-03 18:18:13 +0000
commit2db711ba8d2ffb8b2d56baed59fb2c2cedbba3fb (patch)
treedd3a23e88a236ac57d166b3b8405300852ad859c /www-servers/spawn-fcgi/files
parentAdded augeas and shadow local use flags for app-admin/puppet. (diff)
downloadgentoo-2-2db711ba8d2ffb8b2d56baed59fb2c2cedbba3fb.tar.gz
gentoo-2-2db711ba8d2ffb8b2d56baed59fb2c2cedbba3fb.tar.bz2
gentoo-2-2db711ba8d2ffb8b2d56baed59fb2c2cedbba3fb.zip
improve documentation in conf.d - use a different exec approach in init.d
(Portage version: 2.2_rc26/cvs/Linux i686)
Diffstat (limited to 'www-servers/spawn-fcgi/files')
-rw-r--r--www-servers/spawn-fcgi/files/spawn-fcgi.confd27
-rw-r--r--www-servers/spawn-fcgi/files/spawn-fcgi.initd8
2 files changed, 22 insertions, 13 deletions
diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.confd b/www-servers/spawn-fcgi/files/spawn-fcgi.confd
index 78f72e2bd0b3..1c6fd1de1b7b 100644
--- a/www-servers/spawn-fcgi/files/spawn-fcgi.confd
+++ b/www-servers/spawn-fcgi/files/spawn-fcgi.confd
@@ -1,23 +1,32 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.confd,v 1.1 2009/04/01 10:12:17 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.confd,v 1.2 2009/04/03 18:18:13 bangert Exp $
# DO NOT MODIFY THIS FILE DIRECTLY! CREATE A COPY AND MODIFY THAT INSTEAD!
-# One of the following options must be enabled. The filename specified by
+# The FCGI process can be made available through a filesystem socket or
+# through a inet socket. One and only one of the two types must be choosen.
+# Default is the inet socket.
+
+# The filename specified by
# FCGI_SOCKET will be suffixed with a number for each child process, for
-# example, fcgi.socket-1. The port specified by FCGI_PORT is the port used
-# by the first child process. If this is set to 1234 then subsequent child
-# processes will use 1235, 1236, etc.
-#
+# example, fcgi.socket-1.
+# Leave empty to use an IP socket (default). See below. Enabling this,
+# disables the IP socket.
+#
FCGI_SOCKET=
-FCGI_PORT=1234
# When using FCGI_PORT, connections will only be accepted from the following
# address. The default is 127.0.0.1. Use 0.0.0.0 to bind to all addresses.
#
FCGI_ADDRESS=127.0.0.1
+# The port specified by FCGI_PORT is the port used
+# by the first child process. If this is set to 1234 then subsequent child
+# processes will use 1235, 1236, etc.
+#
+FCGI_PORT=1234
+
# The path to your FastCGI application. These sometimes carry the .fcgi
# extension but not always. For PHP, you should usually point this to
# /usr/bin/php-cgi.
@@ -50,5 +59,5 @@ ALLOWED_ENV=""
# of child processes to spawn. The second is the number of requests to be
# served by a single PHP process before it is restarted.
#
-PHP_FCGI_CHILDREN=5
-PHP_FCGI_MAX_REQUESTS=500
+#PHP_FCGI_CHILDREN=5
+#PHP_FCGI_MAX_REQUESTS=500
diff --git a/www-servers/spawn-fcgi/files/spawn-fcgi.initd b/www-servers/spawn-fcgi/files/spawn-fcgi.initd
index 999a31e689ba..ce7e52220758 100644
--- a/www-servers/spawn-fcgi/files/spawn-fcgi.initd
+++ b/www-servers/spawn-fcgi/files/spawn-fcgi.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.1 2009/04/01 10:12:17 bangert Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/spawn-fcgi/files/spawn-fcgi.initd,v 1.2 2009/04/03 18:18:13 bangert Exp $
PROGNAME=${SVCNAME/spawn\-fcgi./}
SPAWNFCGI=/usr/bin/spawn-fcgi
@@ -26,7 +26,7 @@ start() {
fi
if [[ ! -z "${FCGI_SOCKET}" ]] && [[ ! -z "${FCGI_PORT}" ]]; then
- eerror "Only one of both must be defined:"
+ eerror "Only one of the two may be defined:"
eerror " FCGI_SOCKET=${FCGI_SOCKET}"
eerror " FCGI_PORT=${FCGI_PORT}"
return 1
@@ -70,10 +70,10 @@ start() {
local P
P=${PIDFILE}-${X}.pid
[[ -n "${FCGI_SOCKET}" ]] && SOCKET_OPTION="-s ${FCGI_SOCKET}-${X}"
- [[ -n "${FCGI_PORT}" ]] && PORT_OPTION="-a ${FCGI_ADDRESS} -p $((${FCGI_PORT} + ${X} - 1))"
+ [[ -n "${FCGI_PORT}" ]] && INET_OPTION="-a ${FCGI_ADDRESS} -p $((${FCGI_PORT} + ${X} - 1))"
start-stop-daemon --start --pidfile ${P} ${E} --exec ${SPAWNFCGI} -- \
- ${SOCKET_OPTION} ${PORT_OPTION} -f ${FCGI_PROGRAM} -P ${P} ${OPTIONS}
+ ${SOCKET_OPTION} ${INET_OPTION} -P ${P} ${OPTIONS} -- ${FCGI_PROGRAM}
RETVAL=$?
# Stop on error. Don't want to spawn a mess!