[systemd-devel] Examples to distinguish Before=/After= and Wants=/Requires=/BindsTo=

Manuel Wagesreither ManWag at FastMail.FM
Wed Sep 15 15:15:32 UTC 2021


Hello all,

I'm onboarding some collegues who don't have much experience with systemd. One thing I would like to focus on is the difference between Before=/After= and Wants=/Requires=/BindsTo in systemd units.

I think it would get immediately clear if could provide them an example where we want one but not the other. Unfortunately I've got problems coming up with such an example. In my use cases, whenever I needed an After= I needed an Wants= as well.

Can you come up with something good?

Thanks, regards,
Manuel


More information about the systemd-devel mailing list