From c3069a6bfb454a0e02607ad21b5badf9847fe11a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 7 Oct 2024 09:37:24 +0200 Subject: [PATCH] man: reword comment a bit regarding ExecStartPre= multiple commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- man/systemd.service.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 56ff4577ce..3066c91955 100644 --- a/man/systemd.service.xml +++ b/man/systemd.service.xml @@ -409,12 +409,11 @@ ExecStartPre= ExecStartPost= - Additional commands that are executed before - or after the command in ExecStart=, - respectively. Syntax is the same as for - ExecStart=, except that multiple command - lines are allowed and the commands are executed one after the - other, serially. + + Additional commands that are executed before or after the command in + ExecStart=, respectively. Syntax is the same as for ExecStart=. + Multiple command lines are allowed, regardless of the service type (i.e. Type=), + and the commands are executed one after the other, serially. If any of those commands (not prefixed with -) fail, the rest are not executed and the @@ -450,8 +449,9 @@ ExecCondition= - Optional commands that are executed before the commands in ExecStartPre=. - Syntax is the same as for ExecStart=, except that multiple command lines are allowed and the + Optional commands that are executed before the commands in + ExecStartPre=. Syntax is the same as for ExecStart=. Multiple + command lines are allowed, regardless of the service type (i.e. Type=), and the commands are executed one after the other, serially. The behavior is like an ExecStartPre= and condition check hybrid: when an -- 2.25.1