pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
www/spawn-fcgi: port number not configurable in rc.conf
Hello,
due to a variable missing in the rc script, the listening port of
spawn-fcgi job cannot be set in /etc/rc.conf.
The following patch adds the job_port "eval" for the port of the job
configured in /etc/rc.conf:
======
--- files/spawnfcgi.sh.orig 2010-04-11 19:34:14.000000000 +0200
+++ files/spawnfcgi.sh 2010-04-11 19:35:05.000000000 +0200
@@ -40,6 +40,7 @@
job_socket=$(eval echo \$${name}_${job}_socket)
job_socket_mode=$(eval echo \$${name}_${job}_socket_mode)
job_address=$(eval echo \$${name}_${job}_address)
+ job_port=$(eval echo \$${name}_${job}_port)
job_children=$(eval echo \$${name}_${job}_children)
job_php_children=$(eval echo \$${name}_${job}_php_children)
======
Also, I found the configuration not straight forward, what about a
MESSAGE explaining it? for example: (sorry for my bad English)
===========================================================================
To configure spawn-fcgi jobs from /etc/rc.conf:
1) List the job to be started:
spawnfcgi=YES
spawnfcgi_jobs="job1 ... jobN"
2) Add options to each job in the form spawnfcgi_<job>_<option>, for
example, if you use PHP:
spawnfcgi_jobX_command="/usr/pkg/libexec/cgi-bin/php"
spawnfcgi_jobX_args=""
spawnfcgi_jobX_user="php"
spawnfcgi_jobX_socket=""
spawnfcgi_jobX_address="127.0.0.1"
spawnfcgi_jobX_port="9000"
spawnfcgi_jobX_children="3"
The complete list of options can be found in the spawnfcgi rc script
===========================================================================
Nicolas
Home |
Main Index |
Thread Index |
Old Index