summaryrefslogtreecommitdiff
path: root/src/shared/bus-unit-util.c
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-12-18 17:52:52 +0000
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-12-18 23:17:53 +0000
commit47dba9fb091cc6fa8ae8ea1d2d6b0652ec84f765 (patch)
treee78fba787af89a002ad3a6b9a3131f46a2fd2136 /src/shared/bus-unit-util.c
parentef1aa10692ae71f4f96c5a421d7e3a132f169b4a (diff)
downloadsystemd-47dba9fb091cc6fa8ae8ea1d2d6b0652ec84f765.tar.gz
path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=
Given there's now a default for these settings, also allow users to configure them, matching socket units
Diffstat (limited to 'src/shared/bus-unit-util.c')
-rw-r--r--src/shared/bus-unit-util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
index c58394e63e..dcce530c99 100644
--- a/src/shared/bus-unit-util.c
+++ b/src/shared/bus-unit-util.c
@@ -2113,6 +2113,12 @@ static int bus_append_path_property(sd_bus_message *m, const char *field, const
return 1;
}
+ if (streq(field, "TriggerLimitBurst"))
+ return bus_append_safe_atou(m, field, eq);
+
+ if (streq(field, "TriggerLimitIntervalSec"))
+ return bus_append_parse_sec_rename(m, field, eq);
+
return 0;
}