summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-09-03 22:52:40 +0200
committerMike Yuan <me@yhndnzj.com>2024-09-04 21:37:20 +0200
commit40233f70cc8de31487817609cd543ea4f193a73f (patch)
tree392a2e72f5a99895d19c902ca08824176d704523 /src/core
parentcore/service: modernize service_load_pid_file() a bit (diff)
downloadsystemd-40233f70cc8de31487817609cd543ea4f193a73f.tar.xz
systemd-40233f70cc8de31487817609cd543ea4f193a73f.zip
core: add missing serialization for Unit.debug_invocation
Follow-up for 7d8bbfbe0852ec89590d1dc5e28afc95d6d44fa1
Diffstat (limited to 'src/core')
-rw-r--r--src/core/unit-serialize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/unit-serialize.c b/src/core/unit-serialize.c
index 8baa30f9e5..f96bae19f9 100644
--- a/src/core/unit-serialize.c
+++ b/src/core/unit-serialize.c
@@ -101,6 +101,8 @@ int unit_serialize_state(Unit *u, FILE *f, FDSet *fds, bool switching_root) {
(void) serialize_bool(f, "transient", u->transient);
(void) serialize_bool(f, "in-audit", u->in_audit);
+ (void) serialize_bool(f, "debug-invocation", u->debug_invocation);
+
(void) serialize_bool(f, "exported-invocation-id", u->exported_invocation_id);
(void) serialize_bool(f, "exported-log-level-max", u->exported_log_level_max);
(void) serialize_bool(f, "exported-log-extra-fields", u->exported_log_extra_fields);
@@ -265,6 +267,9 @@ int unit_deserialize_state(Unit *u, FILE *f, FDSet *fds) {
else if (MATCH_DESERIALIZE("in-audit", l, v, parse_boolean, u->in_audit))
continue;
+ else if (MATCH_DESERIALIZE("debug-invocation", l, v, parse_boolean, u->debug_invocation))
+ continue;
+
else if (MATCH_DESERIALIZE("exported-invocation-id", l, v, parse_boolean, u->exported_invocation_id))
continue;