Re: PerlRequire script starts two times - how to avoid this

[prev] [thread] [next] [Date index for 2004/11/18]

From: Perrin Harkins
Subject: Re: PerlRequire script starts two times - how to avoid this
Date: 22:35 on 18 Nov 2004
On Thu, 2004-11-18 at 11:55, John Wittkoski wrote:
> The code is _always_ called twice (i.e. when I do a start OR restart) 
> and $Apache::Server::Starting is always true the first time it's called 
> but not the second and $Apache::Server::ReStarting is always false.
> 
> That is, when starting the server I see:
> 
> Called
> Server is Starting
> Called

With mod_perl 1.29 and Perl 5.8.3 I see this from my startup.pl:
Called
Server is Starting

The versions may make a difference here.  Anyway, there is a simpler way
to make sure you don't do things twice: put them in a module and call
the module via "use" in your startup.pl.

- Perrin


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Re: PerlRequire script starts two times - how to avoid this
Perrin Harkins 22:35 on 18 Nov 2004

Apache::Session delete error
Bart Simpson 23:00 on 18 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52