man: Clarify when OnFailure= activates after restarts (#7646)
This commit is contained in:
parent
f1d34068ef
commit
bd2538b50b
|
@ -754,7 +754,8 @@
|
||||||
limiting configured with <varname>StartLimitIntervalSec=</varname>
|
limiting configured with <varname>StartLimitIntervalSec=</varname>
|
||||||
and <varname>StartLimitBurst=</varname>, see
|
and <varname>StartLimitBurst=</varname>, see
|
||||||
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
for details.</para>
|
for details. A restarted service enters the failed state only
|
||||||
|
after the start limits are reached.</para>
|
||||||
|
|
||||||
<para>Setting this to <option>on-failure</option> is the
|
<para>Setting this to <option>on-failure</option> is the
|
||||||
recommended choice for long-running services, in order to
|
recommended choice for long-running services, in order to
|
||||||
|
|
|
@ -665,7 +665,9 @@
|
||||||
|
|
||||||
<listitem><para>A space-separated list of one or more units
|
<listitem><para>A space-separated list of one or more units
|
||||||
that are activated when this unit enters the
|
that are activated when this unit enters the
|
||||||
<literal>failed</literal> state.</para></listitem>
|
<literal>failed</literal> state. A service unit using
|
||||||
|
<varname>Restart=</varname> enters the failed state only after
|
||||||
|
the start limits are reached.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
|
|
@ -297,11 +297,12 @@
|
||||||
states are called "activating", "deactivating"). A special
|
states are called "activating", "deactivating"). A special
|
||||||
"failed" state is available as well, which is very similar to
|
"failed" state is available as well, which is very similar to
|
||||||
"inactive" and is entered when the service failed in some way
|
"inactive" and is entered when the service failed in some way
|
||||||
(process returned error code on exit, or crashed, or an operation
|
(process returned error code on exit, or crashed, an operation
|
||||||
timed out). If this state is entered, the cause will be logged,
|
timed out, or after too many restarts). If this state is entered,
|
||||||
for later reference. Note that the various unit types may have a
|
the cause will be logged, for later reference. Note that the
|
||||||
number of additional substates, which are mapped to the five
|
various unit types may have a number of additional substates,
|
||||||
generalized unit states described here.</para>
|
which are mapped to the five generalized unit states described
|
||||||
|
here.</para>
|
||||||
|
|
||||||
<para>The following unit types are available:</para>
|
<para>The following unit types are available:</para>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue