Tom Smith wrote:
> So.. when doing a ps -ux I get...
> 
> tomsmith 22106  0.0  0.0  6836     8  ??  SN   Thu11AM   0:03.42 [python]
> tomsmith 22107  0.0  0.0 14772     8  ??  SN   Thu11AM   0:06.32 [python]
> tomsmit h 22108  0.0  0.0 15352     8  ??  SN   Thu11AM   0:04.84 [python]
> tomsmith 23858  0.0  0.0  6836     8  ??  SN   Thu11AM   0:07.04 [python]
> tomsmith 23891  0.0  0.1  5352  2280  ??  SN   Thu11AM   0:29.77 
> /usr/local/sbin/lighttpd -f 
> /home/tomsmith/domains/burningahole.co.uk/lighttpd/
> tomsmith 35292  0.0  0.0  6836  1200  ??  SN    6:08PM   0:01.54 [python]
> tomsmith 35293  0.0  0.4 39008 12552  ??  SN    6:08PM   9:25.17 [python]
> tomsmith 35294  0.0  0.3 38716 10848  ??  SN    6:08PM   9:00.45 [python]
> 
> So... are the pythons django-fcgi.py instances?

Yes, unless you're running some other python processes. "ps auxw" should 
show more info...

Anyway there is only one parent process among all those fcgi processes. 
The usual way to know the parent pid (to kill it) is to keep a file 
where this pid is stored. Django's own "manage.py" inside a project 
directory can start fcgi servers for you and it has an option to store 
the parent pid in a file:

./manage.py runfcgi pidfile=/var/run/myproject.pid

Then you can kill it like

kill `cat /var/run/myproject.pid`

This file is also used by init scripts that most unixes use to 
start/stop/restart services.

> and do I have to run django-fcgi.py again afterwards or does lighttpd boot 
> it up automatically?

This one I don't know. I never get to know how to teach a webserver tp 
start fastcgi processes so all I wrote above makes sense when you start 
fcgi server externally and just configure a webserver to use it... Sorry 
if it didn't help!

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to