summaryrefslogtreecommitdiff
path: root/man/systemd.service.xml
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-03-20 18:49:39 +0800
committerMike Yuan <me@yhndnzj.com>2023-03-27 19:31:12 +0800
commitbe1adc27fc61ba723bd0392199f7b82ef9f1c970 (patch)
tree11b120f5cdbea35ed59c4198c0179d79c4fcc7ee /man/systemd.service.xml
parentf447b741854a612b68941a5c791ed5208a5b140a (diff)
downloadsystemd-be1adc27fc61ba723bd0392199f7b82ef9f1c970.tar.gz
core: add RestartSteps= and RestartSecMax= for exponentially increasing
interval between restarts RestartSteps= accepts a positive integer as the number of steps to take to increase the interval between auto-restarts from RestartSec= to RestartSecMax=, or 0 to disable it. Closes #6129
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r--man/systemd.service.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index a1a32e8cd9..e8be2ff468 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -611,6 +611,25 @@
</varlistentry>
<varlistentry>
+ <term><varname>RestartSteps=</varname></term>
+ <listitem><para>Configures the number of steps to take to increase the interval
+ of auto-restarts from <varname>RestartSec=</varname> to <varname>RestartSecMax=</varname>.
+ Takes a positive integer or 0 to disable it. Defaults to 0.</para>
+
+ <para>This setting is effective only if <varname>RestartSecMax=</varname> is also set.</para></listitem>
+ </varlistentry>
+
+ <varlistentry>
+ <term><varname>RestartSecMax=</varname></term>
+ <listitem><para>Configures the longest time to sleep before restarting a service
+ as the interval goes up with <varname>RestartSteps=</varname>. Takes a value
+ 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></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><varname>TimeoutStartSec=</varname></term>
<listitem><para>Configures the time to wait for start-up. If a daemon service does not signal
start-up completion within the configured time, the service will be considered failed and will be