[long] Recovery handling in TXN branch
David Relson
relson at osagesoftware.com
Mon Aug 16 16:50:26 CEST 2004
On Mon, 16 Aug 2004 16:07:53 +0200
Matthias Andree wrote:
> On Mon, 16 Aug 2004, Tom Anderson wrote:
>
> > If you're using the daemon model, then a daemon process should check
> > for its own lockfile before starting. Only one bogofilter daemon
> > should be running at any one time. Ping the pid specified in the
> > lockfile with a signal and wait for the predetermined reply (TBD).
> > If no reply is heard, do recovery and start the daemon. If a reply
> > is heard, simply quit. This should handle the reboot situation.
>
> OK, if there is a special PING protocol, that might work.
>
> We don't have server-client code in place however, and if I were to
> change one feature at a time, I'd need to do the daemon first,
> however, deadlock avoidance after crash is a more pressing issue OTOH.
Once upon a time (up through version 0.8), bogofilter included ESR's
autodaemon code. I've got copies if you want it.
David
More information about the bogofilter-dev
mailing list