[systemd-devel] Requires and After
Jérémy Rosen
jeremy.rosen at smile.fr
Tue Jan 1 11:44:04 UTC 2019
The short answer is that Requires without after makes little sense,
since you can't reliably know if your dependency is here without it
(if it fails at startup, you might or might not be started, depending
on the startup order systemd chooses)
however, for backward compatibility reasons, those two will most
likely stay separate.
I think a bigger warning in the docs that those two should usually
be used together would be welcomed.
Cheers
Jeremy
On 30/12/2018 12:05, Olaf van der Spek wrote:
> Hi,
>
> Evverx suggested I ask here @ https://github.com/systemd/systemd/issues/11284
> It's about Requires and After. I think a unit in Requires should imply
> that unit in After too, otherwise the requirement isn't really met.
> Is there a use case for Requires but not After?
> If not, would it make sense to change semantics to have Requires imply After?
>
> Requires and After are a common source of confusion:
> https://serverfault.com/questions/812584/in-systemd-whats-the-difference-between-after-and-requires
> https://unix.stackexchange.com/questions/388586/systemd-requires-vs-wants
>
--
SMILE <http://www.smile.eu/>
20 rue des Jardins
92600 Asnières-sur-Seine
*Jérémy ROSEN*
Architecte technique
Responsable de l'expertise Smile-ECS
email jeremy.rosen at smile.fr <mailto:jeremy.rosen at smile.fr>
phone +33141402967
url http://www.smile.eu
Twitter <https://twitter.com/GroupeSmile> Facebook
<https://www.facebook.com/smileopensource> LinkedIn
<https://www.linkedin.com/company/smile> Github
<https://github.com/Smile-SA>
Découvrez l’univers Smile, rendez-vous sur smile.eu
<http://smile.eu/?utm_source=signature&utm_medium=email&utm_campaign=signature>
eco Pour la planète, n'imprimez ce mail que si c'est nécessaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190101/edc269a9/attachment.html>
More information about the systemd-devel
mailing list