Amanda Waite | 16 Dec 21:59

Re: spawn-fcgi problem

I tried as you suggested.

spawn-fcgi -f /export/home/regapp/public/dispatch.fcgi -p 7001 -P /tmp/1.pid

And ran this from a terminal under gnome, from the command line console and from a remote shell both as root and as a non-privileged user but I couldn't reproduce the problem (I checked that the app was working during each of the tests)

What versions of OpenSolaris and Lighty are you running?

Before you logout, run ps -ef and see what the Parent Pid (PPID) of the fcgi process is. It should be '1'. Also run the command 'jobs' in the shell to see if there are any jobs running in the background.

Cheers

Mandy


On 15/12/2007, rkmr.em <at> gmail.com <rkmr.em <at> gmail.com > wrote:
hi amanda,
can you try to spawn a tcp fastcgi process...

this is what I do, and even after i type in logout it is doesnt exit.. just stays like that

$ /opt/local/bin/spawn-fcgi -f /home/mark/work/groupcards/code.py -p 3222 -P /tmp/1.pid
spawn-fcgi.c.186: child spawned successfully: PID: 186
$ logout



On Dec 14, 2007 8:46 AM, Amanda Waite < mandy.waite2007 <at> googlemail.com > wrote:
I'm not able to recreate this. I have a Rails CRUD app installed at /export/home/regapp on OpenSolaris. if I run spawn-fcgi like this

spawn-fcgi -f /export/home/regapp/public/dispatch.fcgi -s /tmp/regapp.fcgi.socket-1 -u nobody -g nogroup

(where nobody/nogroup is the user/group I'm running Lighttpd under)

The spawn-fcgi app forks a new fcgi process and then exits. I can then do what I want in the terminal, including closing it.

I'm probably not understanding the question correctly, or my setup is fundamentally different to yours.

This was with Lighttpd 1.4.18

Mandy


On 11/12/2007, rkmr.em <at> gmail.com < rkmr.em <at> gmail.com> wrote:
hi,
if i spawn an fcgi processes using spawn-fcgi, and exit the terminal it does not close till the spawned fcgi process dies or is killed in opensolaris...
 how do i fix this?




Gmane