From: Mike Yuan Date: Wed, 17 May 2023 15:33:05 +0000 (+0800) Subject: bus-unit-util: add missing RestartSteps and RestartMaxDelaySec to bus_append_service_... X-Git-Tag: v254-rc1~452^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F27673%2Fhead;p=thirdparty%2Fsystemd.git bus-unit-util: add missing RestartSteps and RestartMaxDelaySec to bus_append_service_property Follow-up for be1adc27fc61ba723bd0392199f7b82ef9f1c970 --- 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",