develooper Front page | perl.qpsmtpd | Postings from July 2007

shutdown hook for plugins?

Thread Next
From:
Matthew Harrell
Date:
July 30, 2007 17:10
Subject:
shutdown hook for plugins?
Message ID:
20070731000949.GA32454@bittwiddlers.com

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

-- 
  Matthew Harrell                          Dogs have masters,
  Bit Twiddlers, Inc.                       cats have staff
  mharrell@bittwiddlers.com

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About