Shawn Walker wrote:
> Ethan Quach wrote:
>> I looked at the ai-webserver code, and I couldn't find where it 
>> actually traps a SIGTERM,
>> but it might be something inherent in python.  But it seems to be 
>> dieing gracefullly.
>
> If you're talking about a cherrypy application; cherrypy has built-in, 
> default handlers for both SIGHUP and SIGTERM.
>
> SIGTERM will cause a graceful die.

Ah.  Thanks for the info.

-ethan

>
> SIGHUP will cause a graceful die *if* console isatty(); if is *NOT*
> isatty() it will cause an execv() respawn of the process.
>
> If you would like to turn off these default handlers, look here:
> http://www.cherrypy.org/wiki/ModPython
>
> Cheers,

Reply via email to