From a559ea1535a3939605049c189ca3f2c86770c067 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Wed, 17 May 2023 23:33:05 +0800 Subject: [PATCH] bus-unit-util: add missing RestartSteps and RestartMaxDelaySec to bus_append_service_property Follow-up for be1adc27fc61ba723bd0392199f7b82ef9f1c970 --- src/shared/bus-unit-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index a3211796097..b32071104b6 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", -- 2.47.3