On Mon, 24.10.11 18:04, Michael Olbrich ([email protected]) wrote:

> This patch adds WatchdogRebootTimestamp[Monotonic] to the systemd
> manager API. It contains the earliest point in time when systemd might
> reboot the system because the timer for WatchdogRebootUSec for a
> service expired.
> If we assume the system takes Xus to shut down then
> WatchdogRebootTimestamp + Xus should never be in the past. A watchdog
> daemon handling the hardware watchdog can use this information to
> determine when to let the hardware watchdog restart the system.
> This is convenience information for a watchdog daemon. With this the
> it can avoid a lot of D-Bus calls that are necessary to calculate the
> same value.

Hmm, wouldn't it be nicer to generate this value on the fly on the
server side when a client asks for it? i.e. instead of having an actual
field watchdog_timestamp just fake it when the client asks for it?

WHat I am not getting here, don't you also want to send out
notifications each time the watchdog timestamps are refreshed?


Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to