summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-05-17 17:33:05 +0200
committerMike Yuan <me@yhndnzj.com>2023-05-17 18:23:49 +0200
commita559ea1535a3939605049c189ca3f2c86770c067 (patch)
treed32625b2ea6c0ed8cf5bcb1e69656518e0de6498
parentcore: rename RestartSecMax to RestartMaxDelaySec (diff)
downloadsystemd-a559ea1535a3939605049c189ca3f2c86770c067.tar.xz
systemd-a559ea1535a3939605049c189ca3f2c86770c067.zip
bus-unit-util: add missing RestartSteps and RestartMaxDelaySec to bus_append_service_property
Follow-up for be1adc27fc61ba723bd0392199f7b82ef9f1c970
-rw-r--r--src/shared/bus-unit-util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
index a321179609..b32071104b 100644
--- a/src/shared/bus-unit-util.c
+++ b/src/shared/bus-unit-util.c
@@ -2210,6 +2210,7 @@ static int bus_append_service_property(sd_bus_message *m, const char *field, con
return bus_append_parse_boolean(m, field, eq);
if (STR_IN_SET(field, "RestartSec",
+ "RestartMaxDelaySec",
"TimeoutStartSec",
"TimeoutStopSec",
"TimeoutAbortSec",
@@ -2226,7 +2227,8 @@ static int bus_append_service_property(sd_bus_message *m, const char *field, con
return bus_append_parse_sec_rename(m, "TimeoutStopSec", eq);
}
- if (streq(field, "FileDescriptorStoreMax"))
+ if (STR_IN_SET(field, "FileDescriptorStoreMax",
+ "RestartSteps"))
return bus_append_safe_atou(m, field, eq);
if (STR_IN_SET(field, "ExecCondition",