man: reword comment a bit regarding ExecStartPre= multiple commands

The documentation claimed that ExecStartPre=/ExecStartPost= accepts
multiple command lines, in contrast to ExecStart=. This is half an
untruth, because ExecStart= allows that too – as long as Type=oneshot is
set.

Hence, reword this a bit, and do not emphasize the contrast.

Prompted by: #34570
This commit is contained in:
Lennart Poettering
2024-10-07 09:37:24 +02:00
committed by Yu Watanabe
parent e9984357ad
commit c3069a6bfb

View File

@@ -409,12 +409,11 @@
<varlistentry>
<term><varname>ExecStartPre=</varname></term>
<term><varname>ExecStartPost=</varname></term>
<listitem><para>Additional commands that are executed before
or after the command in <varname>ExecStart=</varname>,
respectively. Syntax is the same as for
<varname>ExecStart=</varname>, except that multiple command
lines are allowed and the commands are executed one after the
other, serially.</para>
<listitem><para>Additional commands that are executed before or after the command in
<varname>ExecStart=</varname>, respectively. Syntax is the same as for <varname>ExecStart=</varname>.
Multiple command lines are allowed, regardless of the service type (i.e. <varname>Type=</varname>),
and the commands are executed one after the other, serially.</para>
<para>If any of those commands (not prefixed with
<literal>-</literal>) fail, the rest are not executed and the
@@ -450,8 +449,9 @@
<varlistentry>
<term><varname>ExecCondition=</varname></term>
<listitem><para>Optional commands that are executed before the commands in <varname>ExecStartPre=</varname>.
Syntax is the same as for <varname>ExecStart=</varname>, except that multiple command lines are allowed and the
<listitem><para>Optional commands that are executed before the commands in
<varname>ExecStartPre=</varname>. Syntax is the same as for <varname>ExecStart=</varname>. Multiple
command lines are allowed, regardless of the service type (i.e. <varname>Type=</varname>), and the
commands are executed one after the other, serially.</para>
<para>The behavior is like an <varname>ExecStartPre=</varname> and condition check hybrid: when an