]> git.ipfire.org Git - thirdparty/systemd.git/commit
watchdog: Add watchdog pretimeout support
authorCurtis Klein <curtis.klein@hpe.com>
Sun, 27 Jun 2021 22:36:49 +0000 (15:36 -0700)
committerLuca Boccassi <bluca@debian.org>
Tue, 22 Feb 2022 17:19:54 +0000 (17:19 +0000)
commit5717062e93ec6f128188d2ef4d1399623995bc63
treed0810c996144139af9bd4eade4b625d055d2308b
parentb491d74064f9d5e17a71b38b014434237169a077
watchdog: Add watchdog pretimeout support

Add support for managing and configuring watchdog pretimeout values if
the watchdog hardware supports it. The ping interval is adjusted to
account for a pretimeout so that it will still ping at half the timeout
interval before a pretimeout event would be triggered. By default the
pretimeout defaults to 0s or disabled.

The RuntimeWatchdogPreSec config option is added to allow the pretimeout
to be specified (similar to RuntimeWatchdogSec). The
RuntimeWatchdogPreUSec dbus property is added to override the pretimeout
value at runtime (similar to RuntimeWatchdogUSec). Setting the
pretimeout to 0s will disable the pretimeout.
12 files changed:
man/kernel-command-line.xml
man/org.freedesktop.systemd1.xml
man/systemd-system.conf.xml
src/core/dbus-manager.c
src/core/main.c
src/core/manager-serialize.c
src/core/manager.c
src/core/manager.h
src/core/system.conf.in
src/shared/watchdog.c
src/shared/watchdog.h
test/fuzz/fuzz-unit-file/directives-all.service