[rt-devel] RT 2.0.14-pre1
Vivek Khera
khera at kcilink.com
Mon Jul 1 14:44:16 EDT 2002
>>>>> "FW" == Florian Weimer <Weimer at CERT.Uni-Stuttgart.DE> writes:
FW> #Connect to the database and get RT::SystemUser and RT::Nobody loaded
FW> -DBConnect();
FW> +eval { DBConnect(); };
FW> +if ($@) {
FW> + print "$@\n";
FW> + exit 57; # magic exit status for our Exim config
FW> +}
The right way is to require sysexits.ph and then return &EX_TEMPFAIL
on the temp failure. On FreeBSD, the tempfail is 75. Personally, I'd
emit the error as a warn rather then print.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera at kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
More information about the Rt-devel
mailing list