You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2000/08/16 07:10:56 UTC
Re: Aborting Apache startup during PerlInitHandler
On Sun, 23 Jul 2000, Thomas Klausner wrote:
> Hi!
>
> I have got a PerlInitHandler that does some config parsing etc.
>
> I would like Apache to stop starting up and to print out some error
> message ("Config Directive blabla missing" or something like that) if
> an error occures during config parsing. (As it is happing when
> something is wrong with the Apache Config (httpd.cfg ...))
>
> How can this be done?
PerlInitHandler? that happens at request time, not startup time.
assuming you mean PerlRequire or PerlModule, just do something like so:
warn "config failed";
CORE::exit(1);