Revert (partially) "man: Clarify when OnFailure= activates after restarts (#7646)"

This reverts part of commit bd2538b50b,
specifically changes to the description of service state between auto-restarts.

Fixes #27594
This commit is contained in:
Mike Yuan 2023-05-17 23:47:53 +08:00 committed by Yu Watanabe
parent c01f0184b9
commit 2200cf47ce
2 changed files with 2 additions and 4 deletions

View file

@ -886,8 +886,7 @@
limiting configured with <varname>StartLimitIntervalSec=</varname>
and <varname>StartLimitBurst=</varname>, see
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details. A restarted service enters the failed state only
after the start limits are reached.</para>
for details.</para>
<para>Setting this to <option>on-failure</option> is the
recommended choice for long-running services, in order to

View file

@ -822,8 +822,7 @@
<term><varname>OnFailure=</varname></term>
<listitem><para>A space-separated list of one or more units that are activated when this unit enters
the <literal>failed</literal> state. A service unit using <varname>Restart=</varname> enters the
failed state only after the start limits are reached.</para></listitem>
the <literal>failed</literal> state.</para></listitem>
</varlistentry>
<varlistentry>