Re: PerlRequire script starts two times - how to avoid this
[prev]
[thread]
[next]
[Date index for 2004/11/18]
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