Welcome! Log In Create A New Profile

Advanced

Re: nginx perl cgi

S. B.
August 07, 2010 09:46PM
I'd like a solution with using spawn-fcgi.

As I understand it, that Perl wrapper forks into background itself.

I have a script where I load all FastCGI wrappers from:

spawn-fcgi -C 3 -u www-data -s /var/run/php-fcgi.sock -P
/var/run/php-fcgi.pid -- /usr/bin/php5-cgi
spawn-fcgi -F 3 -u www-data -s /var/run/lua-fcgi.sock -P
/var/run/lua-fcgi.pid -- /usr/bin/wsapi.fcgi

it works very well that way, and I have PID files, that I can use to
kill the wrappers with:

kill $(cat /var/run/php-fcgi.pid)
kill $(cat /var/run/lua-fcgi.pid)

I'd like a Perl wrapper that works in the same way, meaning that I'd
pass most stuff with spawn-fcgi. Also, It would give me the possibility
of controlling how many children I want to spawn (-F switch).

Is there a solution that uses spawn-fcgi? I was looking for something
like that, But there's only little, and most of it is quite confusing.

Regards,
--polemon
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: nginx perl cgi

S. B. August 07, 2010 09:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready