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. 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, -- Shawn Walker