richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
be0c12
From 12ce6830c63b4a27bb6d5b7729d70a86079b108f Mon Sep 17 00:00:00 2001
be0c12
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
be0c12
Date: Tue, 16 Oct 2018 15:56:35 +0200
be0c12
Subject: [PATCH] man: move description of *Action= modes to
be0c12
 FailureAction=/SuccessAction=
be0c12
be0c12
FailureAction=/SuccessAction= were added later then StartLimitAction=, so it
be0c12
was easiest to refer to the existing description. But those two settings are
be0c12
somewhat simpler (they just execute the action unconditionally) while
be0c12
StartLimitAction= has additional timing and burst parameters, and they are
be0c12
about to take on a more prominent role, so let's move the description of
be0c12
allowed values.
be0c12
be0c12
(cherry picked from commit 454dd6ce7adb744584ecae9aa0bd1acf3a00e9ed)
be0c12
be0c12
Related: #1860899
be0c12
---
be0c12
 man/systemd.unit.xml | 44 +++++++++++++++++++++++---------------------
be0c12
 1 file changed, 23 insertions(+), 21 deletions(-)
be0c12
be0c12
diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml
be0c12
index 7605c43375..802db453a4 100644
be0c12
--- a/man/systemd.unit.xml
be0c12
+++ b/man/systemd.unit.xml
be0c12
@@ -873,6 +873,24 @@
be0c12
         </listitem>
be0c12
       </varlistentry>
be0c12
 
be0c12
+      <varlistentry>
be0c12
+        <term><varname>FailureAction=</varname></term>
be0c12
+        <term><varname>SuccessAction=</varname></term>
be0c12
+
be0c12
+        <listitem><para>Configure the action to take when the unit stops and enters a failed state or inactive
be0c12
+        state. Takes one of <option>none</option>, <option>reboot</option>, <option>reboot-force</option>,
be0c12
+        <option>reboot-immediate</option>, <option>poweroff</option>, <option>poweroff-force</option> or
be0c12
+        <option>poweroff-immediate</option>. If <option>none</option> is set, no action will be triggered.
be0c12
+        <option>reboot</option> causes a reboot following the normal shutdown procedure (i.e. equivalent to
be0c12
+        <command>systemctl reboot</command>). <option>reboot-force</option> causes a forced reboot which will
be0c12
+        terminate all processes forcibly but should cause no dirty file systems on reboot (i.e. equivalent to
be0c12
+        <command>systemctl reboot -f</command>) and <option>reboot-immediate</option> causes immediate execution of the
be0c12
+        <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system call, which
be0c12
+        might result in data loss. Similarly, <option>poweroff</option>, <option>poweroff-force</option>,
be0c12
+        <option>poweroff-immediate</option> have the effect of powering down the system with similar semantics. Both
be0c12
+        options default to <option>none</option>.</para></listitem>
be0c12
+      </varlistentry>
be0c12
+
be0c12
       <varlistentry>
be0c12
         <term><varname>JobTimeoutSec=</varname></term>
be0c12
         <term><varname>JobRunningTimeoutSec=</varname></term>
be0c12
@@ -929,29 +947,13 @@
be0c12
       <varlistentry>
be0c12
         <term><varname>StartLimitAction=</varname></term>
be0c12
 
be0c12
-        <listitem><para>Configure the action to take if the rate limit configured with
be0c12
-        <varname>StartLimitIntervalSec=</varname> and <varname>StartLimitBurst=</varname> is hit. Takes one of
be0c12
-        <option>none</option>, <option>reboot</option>, <option>reboot-force</option>,
be0c12
-        <option>reboot-immediate</option>, <option>poweroff</option>, <option>poweroff-force</option> or
be0c12
-        <option>poweroff-immediate</option>. If <option>none</option> is set, hitting the rate limit will trigger no
be0c12
-        action besides that the start will not be permitted. <option>reboot</option> causes a reboot following the
be0c12
-        normal shutdown procedure (i.e. equivalent to <command>systemctl reboot</command>).
be0c12
-        <option>reboot-force</option> causes a forced reboot which will terminate all processes forcibly but should
be0c12
-        cause no dirty file systems on reboot (i.e. equivalent to <command>systemctl reboot -f</command>) and
be0c12
-        <option>reboot-immediate</option> causes immediate execution of the
be0c12
-        <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> system call, which
be0c12
-        might result in data loss. Similarly, <option>poweroff</option>, <option>poweroff-force</option>,
be0c12
-        <option>poweroff-immediate</option> have the effect of powering down the system with similar
be0c12
-        semantics. Defaults to <option>none</option>.</para></listitem>
be0c12
+        <listitem><para>Configure an additional action to take if the rate limit configured with
be0c12
+        <varname>StartLimitIntervalSec=</varname> and <varname>StartLimitBurst=</varname> is hit.  Takes the same
be0c12
+        values as the setting <varname>FailureAction=</varname>/<varname>SuccessAction=</varname> settings and executes
be0c12
+        the same actions. If <option>none</option> is set, hitting the rate limit will trigger no action besides that
be0c12
+        the start will not be permitted. Defaults to <option>none</option>.</para></listitem>
be0c12
       </varlistentry>
be0c12
 
be0c12
-      <varlistentry>
be0c12
-        <term><varname>FailureAction=</varname></term>
be0c12
-        <term><varname>SuccessAction=</varname></term>
be0c12
-        <listitem><para>Configure the action to take when the unit stops and enters a failed state or inactive
be0c12
-        state. Takes the same values as the setting <varname>StartLimitAction=</varname> setting and executes the same
be0c12
-        actions. Both options default to <option>none</option>.</para></listitem>
be0c12
-      </varlistentry>
be0c12
 
be0c12
       <varlistentry>
be0c12
         <term><varname>RebootArgument=</varname></term>