Nginx+daemontools
Thomas
iamkenzo at gmail.com
Thu Jan 31 12:47:00 MSK 2008
Hi,
Here is a run template you can use, credits go to Allan Parker from
this mailing-list. I use a same type of file, customize it to your
needs.
----------------------------------------
#!/bin/sh
CHILDREN="25"
FCGI_HOST=127.0.0.1
FCGI_USER=php
FCGI_GROUP=php
FCGI_BIN=/usr/bin/php-cgi
FCGI_PORT=1705
test -x $FCGI_BIN || { echo "$FCGI_BIN not installed";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
export SHELL="/bin/bash"
exec /usr/bin/spawn-fcgi -n \
-f $FCGI_BIN \
-a $FCGI_HOST \
-p $FCGI_PORT \
-u $FCGI_USER \
-g $FCGI_GROUP \
-C $CHILDREN
-----------------------------------------------------------------------
More information about the nginx
mailing list