RE: Question re preloading embperl and apache shutdown

2008-07-24 Thread Andrew O'Brien
Hi Ed, > > Are any of the following useful to you (even if you set a variable > > using the shutdown callback to forcibly stop the preload?) in > > Apache2::ServerUtil? > > > ># register server shutdown callback > >Apache2::ServerUtil::server_shutdown_register_cleanup(sub { > > Apache2::C

RE: Question re preloading embperl and apache shutdown

2008-07-24 Thread Ed Grimm
On Thu, 24 Jul 2008, Andrew O'Brien wrote: > A start in apache is actually a start+restart IIRC. Could that be what > you're seeing? I posted this a few days back but perhaps it was lost > in the noise. I've got the following in my startup.pl: > > use Apache2::ServerUtil; > # We want to do this onl

Re: Question re preloading embperl and apache shutdown

2008-07-24 Thread Neil Gunton
Andrew O'Brien wrote: Hi Neil, use Apache2::ServerUtil; # We want to do this only when the sever restarts. (The start process # includes a restart). The below variable has a value of 1 during # server start/stop and a value greater than one during the second # phase of server starting and any gra

Re: Question re preloading embperl and apache shutdown

2008-07-24 Thread Neil Gunton
Andrew O'Brien wrote: Hi Neil, A start in apache is actually a start+restart IIRC. Could that be what you're seeing? I posted this a few days back but perhaps it was lost in the noise. I've got the following in my startup.pl: use Apache2::ServerUtil; # We want to do this only when the sever r

RE: Question re preloading embperl and apache shutdown

2008-07-23 Thread Andrew O'Brien
Hi Neil, > I am now using Apache2.2, mod_perl 2 and Embperl 2.3. I am also > preloading my Embperl code via startup.pl, and finding that > "apachectl > stop" seems to call my preload routine even when shutting > down apache, > which makes it take an absurdly long time to cycle the server whe

Question re preloading embperl and apache shutdown

2008-07-23 Thread Neil Gunton
I am now using Apache2.2, mod_perl 2 and Embperl 2.3. I am also preloading my Embperl code via startup.pl, and finding that "apachectl stop" seems to call my preload routine even when shutting down apache, which makes it take an absurdly long time to cycle the server when I change code. This di