[systemd-devel] Antw: Re: Re: [EXT] Re: Q: Querying units for "what provides" a target
Andrei Borzenkov
arvidjaar at gmail.com
Fri Sep 9 16:09:34 UTC 2022
On 09.09.2022 16:19, Andrei Borzenkov wrote:
> "Requires" means - submit additional start jobs for the listed units
> and wait until these start jobs are completed before processing the
> start job for the unit itself.
Sorry, that was wrong. That is what everyone assumes it does.
Requires means - "submit additional start jibs and fail start job for
this unit if these additional start jobs failed". The problem is that
Requires by itself does not wait for additional jobs, so unit start can
complete (successfully) before other jobs are selected for execution.
Which is why Requires without After is almost never useful.
More information about the systemd-devel
mailing list