[systemd-devel] Newbie question - Requires doesn't work properly

David Timothy Strauss david at davidstrauss.net
Fri Nov 22 06:48:22 PST 2013


On Fri, Nov 22, 2013 at 10:24 PM, Reindl Harald <h.reindl at thelounge.net> wrote:
> your internal checks are mostly theory because in case of
> a bug you have undefined behavior and what you want to achieve
> with the watchdog is catch this undefined behavior and restart
> the service - in doubt this will not work in the rare cases
> the watchdog should restart until you went the complete
> code-path of a client, in case of a IMAP server you can
> enter the spin-loop everywhere from accept the connection
> to folder listing or receive a message and it may depend
> on a buffer overflow while high concurrency and different
> threads are touching each other in a unexpected way

You're not hearing what I'm saying. Check what's relevant; it's not
systemd's concern what you check. I you need to do a transactional
check of an IMAP server from a separate process or thread, then do
that. Only report back to watchdog if you've verified what you
consider to be a healthy state.


More information about the systemd-devel mailing list