> startup.pl does not get repeated on a restart. However it will when
> started with ./apachectl start. I have never encountered this with Apache
> 1.3.12 or 13.

I've just tested it -- it's not.

The I<startup.pl> file and similar loaded via C<PerlModule> or
C<PerlRequire> are compiled only once. Because once the module is
compiled it enters the special C<%INC> hash. When Apache
restarts--Perl checks whether the module or script in question is
already registered in C<%INC> and won't try to compile it again.

> 
> Jamie
> 
> 
> On Thu, 21 Dec 2000, Stas Bekman wrote:
> 
> > On Wed, 20 Dec 2000, Jamie Krasnoo wrote:
> > 
> > > Ok, it seems that my startup.pl is being run twice on server start.
> > > 
> > > Startup init running
> > > startup.pl - loading templates into memory
> > > --- Loaded template file user_reg.tmpl
> > > Startup init running
> > > startup.pl - loading templates into memory
> > > --- Loaded template file user_reg.tmpl
> > > [Wed Dec 20 15:18:21 2000] [notice] Apache/1.3.14 (Unix) mod_perl/1.24_01\
> > > configured -- resuming normal operations
> > > 
> > > Anyone have an explanation as to why this is happening, I have no hair
> > > left due to trying to figure this one out.
> > 
> > See
> > http://perl.apache.org/guide/config.html#Apache_Restarts_Twice_On_Start
> > 
> > Apache restarts twice indeed, but it shouldn't rerun the startup.pl since
> > it's already require()d and in %INC. 
> > 
> > > 
> > > 
> > > Thanks for your help,
> > > 
> > > Jamie
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > _____________________________________________________________________
> > Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
> > http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
> > mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
> > http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  
> > 
> > 
> 
> 



_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  


Reply via email to