Am 13.07.20 um 17:49 schrieb Michael Biebl: > Am 13.07.20 um 17:04 schrieb Drexl Johannes: >> Package: systemd >> Version: 241-7~deb10u4 >> Severity: normal >> >> Dear Maintainer, >> >> tests on systemd environment variables under certain conditions got me >> puzzled, >> and I guess this would be considered a bug. >> >> A systemd service will execute all ExecStartPost statements, even if the >> corresponding service configured with ExecStart has bailed out with error >> code. >> One can test it with a [Service] section like that: >> >> Type=exec > > If you want this behaviour, use Type=oneshot, not Type=exec
I.e. with Type=exec, systemd will not wait until the program specified in ExecStart= has terminated (and evaluates its exit code) before it proceeds executing the next command.
signature.asc
Description: OpenPGP digital signature