[systemd-devel] Requires and After

Olaf van der Spek ml at vdspek.org
Wed Jan 2 08:59:27 UTC 2019


On Wed, Jan 2, 2019 at 9:54 AM Jérémy Rosen <jeremy.rosen at smile.fr> wrote:
> i.e if A Requires B, you would expect failures of B to prevent A from starting.
> * This is not the case if B is (randomly) scheduled after A.
> * This is the case if B is (randomly) scheduled before A.
> This is the race the implicit After= would prevent.

There is no such race as Requires without After doesn't stop A from
starting (as it can't).

>From the docs:
If one of the other units fails to activate, and an ordering
dependency After= on the failing unit is set, this unit will not be
started.


More information about the systemd-devel mailing list