Ticket #5010 (new enhancement)
shutdown hook for plugins
| Reported by: | thomas.moschny@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.3 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | environment startup shutdown |
| Cc: | ilias@… |
Description
In a plugin, I'd like to create persistent connections somewhere (to a database, or a pipe to talk to another program, whatever) when trac starts (or my plugin is used for the first time), and close that connection again when trac ends, regardless of the reason why trac shuts down.
There could be an extension point resp. interface for the plugin to implement, that contains a shutdown() method.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


