summaryrefslogtreecommitdiff
path: root/src/core/manager-serialize.c
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2022-02-08 12:58:30 +0000
committerLuca Boccassi <bluca@debian.org>2022-02-22 17:19:54 +0000
commitaff3a9e1fa8b5a4606577d2bcd6dbf5d35d7db37 (patch)
treed3d57452a564ba29b72c34f6d382afa124d2a049 /src/core/manager-serialize.c
parent56b96db7005293063c47ecb9ba7b85f078ef8f23 (diff)
downloadsystemd-aff3a9e1fa8b5a4606577d2bcd6dbf5d35d7db37.tar.gz
watchdog: add setting to configure pretimeout governor
Diffstat (limited to 'src/core/manager-serialize.c')
-rw-r--r--src/core/manager-serialize.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/manager-serialize.c b/src/core/manager-serialize.c
index 58063f0193..6a5dec436f 100644
--- a/src/core/manager-serialize.c
+++ b/src/core/manager-serialize.c
@@ -119,6 +119,7 @@ int manager_serialize(
(void) serialize_usec(f, "reboot-watchdog-overridden", m->watchdog_overridden[WATCHDOG_REBOOT]);
(void) serialize_usec(f, "kexec-watchdog-overridden", m->watchdog_overridden[WATCHDOG_KEXEC]);
(void) serialize_usec(f, "pretimeout-watchdog-overridden", m->watchdog_overridden[WATCHDOG_PRETIMEOUT]);
+ (void) serialize_item(f, "pretimeout-watchdog-governor-overridden", m->watchdog_pretimeout_governor_overridden);
for (ManagerTimestamp q = 0; q < _MANAGER_TIMESTAMP_MAX; q++) {
_cleanup_free_ char *joined = NULL;
@@ -464,6 +465,11 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds) {
else
manager_override_watchdog(m, WATCHDOG_PRETIMEOUT, t);
+ } else if ((val = startswith(l, "pretimeout-watchdog-governor-overridden="))) {
+ r = free_and_strdup(&m->watchdog_pretimeout_governor_overridden, val);
+ if (r < 0)
+ return r;
+
} else if (startswith(l, "env=")) {
r = deserialize_environment(l + 4, &m->client_environment);
if (r < 0)