]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd.service: Note RestartSteps only works with RestartSec= set 40309/head
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 8 Jan 2026 22:37:08 +0000 (23:37 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 8 Jan 2026 22:46:05 +0000 (23:46 +0100)
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

index 05e0f954c07b00fd83c40d8bbb1e592295b63b9c..cea9384399d26cefb24c151515a13c277e377322 100644 (file)
         of auto-restarts from <varname>RestartSec=</varname> to <varname>RestartMaxDelaySec=</varname>.
         Takes a positive integer or 0 to disable it. Defaults to 0.</para>
 
-        <para>This setting is effective only if <varname>RestartMaxDelaySec=</varname> is also set.</para>
+        <para>This setting is effective only if <varname>RestartMaxDelaySec=</varname> is also set and
+        <varname>RestartSec=</varname> is not zero.</para>
 
         <xi:include href="version-info.xml" xpointer="v254"/></listitem>
       </varlistentry>
         in the same format as <varname>RestartSec=</varname>, or <literal>infinity</literal>
         to disable the setting. Defaults to <literal>infinity</literal>.</para>
 
-        <para>This setting is effective only if <varname>RestartSteps=</varname> is also set.</para>
+        <para>This setting is effective only if <varname>RestartSteps=</varname> is also set and
+        <varname>RestartSec=</varname> is not zero.</para>
 
         <xi:include href="version-info.xml" xpointer="v254"/></listitem>
       </varlistentry>