From: Matthijs Kooijman Date: Thu, 8 Jan 2026 22:37:08 +0000 (+0100) Subject: man/systemd.service: Note RestartSteps only works with RestartSec= set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F40309%2Fhead;p=thirdparty%2Fsystemd.git man/systemd.service: Note RestartSteps only works with RestartSec= set Setting Restart=0 seems reasonable to have no delay on the first restart, if you do not realize this is impossible with an exponential restart. So explicitly mention that RestartSec must be set. --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 05e0f954c07..cea9384399d 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -592,7 +592,8 @@ of auto-restarts from RestartSec= to RestartMaxDelaySec=. Takes a positive integer or 0 to disable it. Defaults to 0. - This setting is effective only if RestartMaxDelaySec= is also set. + This setting is effective only if RestartMaxDelaySec= is also set and + RestartSec= is not zero. @@ -604,7 +605,8 @@ in the same format as RestartSec=, or infinity to disable the setting. Defaults to infinity. - This setting is effective only if RestartSteps= is also set. + This setting is effective only if RestartSteps= is also set and + RestartSec= is not zero.