I was looking at following section in the Wiki docs:

http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode#Restarting_Daemon_Processes

The code snippet in question is:

if environ['mod_wsgi.process_group'] != '':
    import signal, os
    os.kill(os.getpid(), signal.SIGINT)

using just plain "environ" raises NameError exception. Using
"os.environ" raises KeyError exception. I would also like to note that
the source for "monitor.py" found in the same section does not make
use of the above code snippet.

I am using the setup detailed here:

http://blog.dscpl.com.au/2008/12/using-modwsgi-when-developing-django.html

So I am quite sure I am running in daemon mode.

Dumping os.environ I get the following keys:

LANG,
TZ,
DJANGO_SETTINGS_MODULE,
APACHE_RUN_USER,
APACHE_PID_FILE,
PWD,
APACHE_RUN_GROUP,
HOME,
PATH
-- 
Best Regards,
Nimrod A. Abing

W http://arsenic.ph/
W http://preownedcar.com/
W http://preownedbike.com/
W http://abing.gotdns.com/

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

Reply via email to