Hi Graham,

I've been starting to work with background processes as a replacement for
clunky cron-jobs in a major application.  Here is what I mean:

WSGIDaemonProcess Async-ShockBox-60011 processes=1 threads=1
python-path=/home/jason/DevLevel.2/AMSTMT/Python
display-name=Async-ShockBox-60011

WSGIImportScript /home/jason/DevLevel.2/AMSTMT/Async/ShockBox.py
process-group=Async-ShockBox-60011 application-group=%{GLOBAL}

This works great:
1. the script runs as expected
2. if I kill it as root with kill -9 then it is restarted automatically

I have some questions...

*1. Is there any way to select what error log the output goes to.
Currently it is going to the global apache error log.*

*2. Is there any way, short of `kill -9` or restarting apache, to restart
the daemon process that is being used by WSGIImportScript?*

*3. Is there any way, within a daemon process itself, to restart itself?  I
tried sys.exit() but got this:*

mod_wsgi (pid=25983): SystemExit exception raised by WSGI script
'/home/jason/DevLevel.2/AMSTMT/Async/ShockBox.py' ignored.

Thanks!
Jason

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to