<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 23, 2018 at 9:52 PM, Brian J. Murrell <span dir="ltr"><<a href="mailto:brian@interlinx.bc.ca" target="_blank">brian@interlinx.bc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, 2018-03-23 at 21:45 +0200, Mantas Mikulėnas wrote:<br>
><br>
> No, dependencies do not imply any specific ordering. (The only<br>
> exception is<br>
> when a .target wants/requires another unit.)<br>
<br>
</span>That seems odd but I will leave that aside for a moment...<br>
<span class="gmail-"><br>
> In other words, you will need to additionally list the same units in<br>
> After=, or in certain cases in Before=. (For example, named is a nss-<br>
> lookup<br>
> provider, so it should have "Before=nss-lookup.target", but<br>
> "After=named-setup-mdc.<wbr>service".)<br>
<br>
</span>That is the case:<br>
<br>
# systemctl show named-pkcs11.service | grep -ie ^before -e ^after<br>
Before=nss-lookup.target shutdown.target<br>
After=system.slice named-setup-rndc.service tmp.mount -.mount var.mount network.target systemd-journald.socket basic.target named-dhcp.service<br>
<br>
So it's still puzzling why they report out of order in the journal.<br>
<span class="gmail-"><br>
> On another note, Wants=system.slice is *very* redundant – all system<br>
> services go into that slice anyway.<br>
<br>
</span>That was output from systemctl show so it was probbaby just reflecting<br>
that, as the one above does.<br></blockquote><div><br></div><div>Which systemd version do you run? In v232,</div><div><br></div><div>nss-lookup.target:Description=Host and Network Name Lookups</div><div>nss-user-lookup.target:Description=User and Group Name Lookups </div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div>
</div></div>