Re: Requires and After

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




In my opinion, I don't think the extra inconsistency we get from this is 
worth it. It literally only saves one line in a unit file.

It's not about saving a line in the unit file, it's about avoiding errors on the most common case

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.

That being said... the fact that Requires influences both startup and restart/shutdown makes things a
bit more complicated...

From reading the documentation it seems that Requires without After is equivalent to PartOf and
thus is suspicious (if you want PartOf, you should use PartOf, if you want Requires, the you should
also use After)

This means that there are cases to be checked for but I still globally think that Requires without
After is suspicious, and that an implicit order would make sense... but that's just my opinion and
I am still a bit confused about the fine-details of what Requires does.

my understanding is

Requires = Wants + Requisite + PartOf

is that correct ?

Regards
Jérémy
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

--
SMILE

20 rue des Jardins
92600 Asnières-sur-Seine

Jérémy ROSEN
Architecte technique
Responsable de l'expertise Smile-ECS


Twitter Facebook LinkedIn Github

Découvrez l’univers Smile, rendez-vous sur
                smile.eu

eco Pour la planète, n'imprimez ce mail que si c'est nécessaire
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux