Now I'm having a different problem. In my restart handler I print out the PID using a simple 'warn "pid = $$\n". I was expecting it would print out the PID of the parent (listener) Apache process, but the PID that is printed does not exist in the process table, and is in fact the real Apache parent PID - 1. Getting the PID with POSIX::getpid produces the same result.
I'm baffled by this. Can anyone shed any light?
Javier wrote:
Hello,
Does anyone know if it's possible to hook into Apache graceful restarts?
I tried PerlRestartHandler, but it doesn't seem to get called. I see it called when I do apachectl startssl, but not apachectl restart nor apachectl graceful.
None of the documentation I've found mentions wheter it gets called only for plain restarts or for graceful restarts also.
Thanks!
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com