mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09: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
This commit is contained in:
committed by
Yu Watanabe
parent
e9984357ad
commit
c3069a6bfb
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user