Re: [APC-DEV] APC + Apache SIGHUP

[email protected] (Hannes Magnusson) Fri, 9 Oct 2009 15:30:16 +0200
Newsgroups php.apc.dev
Message-ID <[email protected]>
On Fri, Oct 9, 2009 at 03:27, Nathan Clemons <[email protected]> wrote:
> On Thu, Oct 8, 2009 at 3:07 AM, Gopal V <[email protected]> wrote:
>> So basically the apc module init is called again in the parent
>> process after it gets a SIGHUP. It's not that apc is clearing
>> its cache or handling the HUP, apache is essentially doing an
>> internal soft restart.
>>
>> http://httpd.apache.org/docs/2.2/stopping.html#hup
>>
>
> Thanks, I didn't actually realize that it restarted APC/PHP on a
> SIGHUP. Are you familiar with whether or not this occurs during a
> SIGUSR1? The Apache documentation is unclear about module reloading.
> From my testing, it seems like it does, but I'm not completely sure
> about that.

According to Rich Bowen (from the Apache doc team) then SIGUSR1 is a
graceful-restart and Apache will *not* reload the modules.
Note though: Some Linux distros add an 'reload' alias, which sometimes
is graceful and othertimes a restart.. so don't use that :)
According to his quick testing Linux is the only OS which does *not*
reload the modules.. so if you are running BSD/OSX or heaven forbid
something crazy like windows or novell...

-Hannes