]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-unit-util: add missing RestartSteps and RestartMaxDelaySec to bus_append_service_... 27673/head
authorMike Yuan <me@yhndnzj.com>
Wed, 17 May 2023 15:33:05 +0000 (23:33 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 17 May 2023 16:23:49 +0000 (00:23 +0800)
Follow-up for be1adc27fc61ba723bd0392199f7b82ef9f1c970

src/shared/bus-unit-util.c

index a321179609743acdfe41a52dc3d16035ac683237..b32071104b603ee4ee3694b7de3a10cb5d22db76 100644 (file)
@@ -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",