From: Lennart Poettering Date: Mon, 7 Oct 2024 07:37:24 +0000 (+0200) Subject: man: reword comment a bit regarding ExecStartPre= multiple commands X-Git-Tag: v257-rc1~267 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3069a6bfb454a0e02607ad21b5badf9847fe11a;p=thirdparty%2Fsystemd.git 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 --- diff --git a/man/systemd.service.xml b/man/systemd.service.xml index 56ff4577cef..3066c919557 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