On Thu 26 Feb 2009, Clinton Gormley wrote:
> > > Is there any way I can:
> > >  - cause the error to be reported properly
> > >  - force apache not to start
> >
> >  eval {load_application(); 1} || do { warn $@; die };
>
> Unfortunately, no.  That still just dies with the obscure error
> message. It seems that STDERR only gets flushed in a later stage of
> the startup process.
>
> What I was thinking was, could there be some way of saying:
>
> eval { load_application();1}
>   || do {
>           warn $@;
>           force_apache_to_quit_startup_once_stderr_flushed();
>      }

Why don't you do that in a <Perl> block?

Be aware that this code is executed twice at startup. Check 
Apache2::ServerUtil::restart_count to prevent that.

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foert...@gmx.net

Reply via email to