mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03:00
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 (cherry picked from commit c3069a6bfb454a0e02607ad21b5badf9847fe11a) (cherry picked from commit ff667d8c2ef7ed2378fb1de39e1bcc2af2197d0e)
This commit is contained in:
parent
848142c0a9
commit
d0063ca694
@ -407,12 +407,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
|
||||
@ -448,8 +447,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user