Emmanuel Dreyfus wrote: > Oliver Fromme wrote: > > > Is there a command to force db dump while milter-greylist is > > > running? I have a script to restart greylist when it takes up > > > over 35% cpu. It would be nice to have a command to dump the > > > database before killing it. > > > > It does that automatically when you kill it. > > On some OSes, that does not work properly. Oh, really? It works perfectly fine for me on FreeBSD 6. I can't imagine what the problem could be with simply installing a handler for SIGTERM (and possibly SIGHUP and other signals) which sets a flag so the program can perform a controlled shutdown. I've done such things in my own programs a million times, and it works on any POSIX-compliant system. > In an ideal world, we could > have milter-greylist listening on a control socket, whith a command line > tool to query and manage the database. Yes, that might be a useful addition. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Gesch\ufffdftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M\ufffdn- chen, HRB 125758, Gesch\ufffdftsf\ufffdhrer: Maik Bachmann, Olaf Erb, Ralf Gebhart Any opinions expressed in this message are personal to the author and may not necessarily reflect the opinions of secnetix GmbH & Co KG in any way. FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd cat man du : where Unix geeks go when they die
Message
Re: [milter-greylist] dbdump command
2007-02-23 by Oliver Fromme
Attachments
- No local attachments were found for this message.