From af88aa17c71f3072788e7780fa0b16bb241faf9b Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 8 Jan 2026 23:37:08 +0100 Subject: [PATCH] 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. --- man/systemd.service.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. -- 2.47.3