Hi Matthew,

On Mon, 30 Jul 2007 20:09:49 -0400
Matthew Harrell <[EMAIL PROTECTED]> wrote:
> When writing a plugin I can do initialization stuff in the register method.
> Is there a method I can use that will be called when qpsmtpd is shutting
> down?  There's an RRD plugin I'm fiddling with and I would prefer ending
> the DB connection when everything shuts down rather than opening and
> closing it each time
Depending on which flavour of qpsmtpd you're running, this (register())
is probably not be the right place for opening connections. The connection
would be shared by all sub processes of qpsmtpd and is likely to trash
the data. The connect hook is guaranteed to happen after any fork()s. 

Away from that I like the idea (and no, there's currently no hook for this).

        Hanno

Reply via email to