]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd.service: Note RestartSteps only works with RestartSec= set
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 8 Jan 2026 22:37:08 +0000 (23:37 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 20:05:57 +0000 (20:05 +0000)
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.

(cherry picked from commit af88aa17c71f3072788e7780fa0b16bb241faf9b)
(cherry picked from commit e70240c3d631976ca93aea90bb3b969a774a882a)
(cherry picked from commit 7910079dce73cd730925d7decdd4350ef3f73c3a)

man/systemd.service.xml

index 284d87631e5812839222c1af79a7307f8a8a18ff..f6d535bda42d8fe5d9da07c92bb732330531f00e 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>