[systemd-devel] [PATCH 4/4] WIP: add basic watchdog daemon
lennart at poettering.net
Tue Nov 1 18:53:45 PDT 2011
On Mon, 24.10.11 18:04, Michael Olbrich (m.olbrich at pengutronix.de) wrote:
> This patch introduces a small watchdog daemon that supervises systemd
> and handles /dev/watchdog. This is mostly a prove of concept for now.
Hmm, do we really want to do this externally? Maybe it would be nicer to
do this right from PID 1? I mean, it's just two ioctl()s right? i.e. a
tight loop that each time we get a TIMEOUT=1 notification message just
calls WDIOC_KEEPALIVE and WDIOC_SETTIMEOUT should be sufficient, right?
This sounds like something we could do in 10 lines in PID 1, which
otherwise would cost 200 lines outside of it. This would also allow us
to get rid of the extra properties on the Manager object, right?
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel