<div dir="auto"><div><div>On Wed, Apr 9, 2025, 12:52 Windl, Ulrich <<a href="mailto:u.windl@ukr.de">u.windl@ukr.de</a>> wrote:</div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
Wasn't there an agreement that "wanting a target" is always wrong? Isn't "After" you are after? ðŸ˜‰<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I've never heard of that kind of agreement. Want on its own isn't enough but *something* has to Want the target for the After to have any effect â€“ otherwise the After would remain a a no-op if nothing pulls the unit into the transaction.</div><div dir="auto"><br></div><div dir="auto">Whether the Wants should be in the "provider" or in the "consumer" is kind of a case-by-case decision. Something like network-online.target contains (Wants) actual services so it has to be Wanted from the consumer (as there's no point in having it started when there are no consumers trying to order After it). An order-only target could be Wanted from the provider instead.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Kind regards,<br>
Ulrich Windl<br>
<br>
> -----Original Message-----<br>
> From: systemd-devel <<a href="mailto:systemd-devel-bounces@lists.freedesktop.org" target="_blank" rel="noreferrer">systemd-devel-bounces@lists.freedesktop.org</a>> On<br>
> Behalf Of Andrei Borzenkov<br>
> Sent: Tuesday, April 8, 2025 2:22 PM<br>
> To: Christopher Hunt <<a href="mailto:huntchr@gmail.com" target="_blank" rel="noreferrer">huntchr@gmail.com</a>><br>
> Cc: <a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">systemd-devel@lists.freedesktop.org</a><br>
> Subject: [EXT] Re: [systemd-devel] Service not starting that wants first-boot-<br>
> complete.target<br>
> <br>
> 08.04.2025 07:50, Christopher Hunt wrote:<br>
> ><br>
> ><br>
> >> On 8 Apr 2025, at 2:40 PM, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com" target="_blank" rel="noreferrer">arvidjaar@gmail.com</a>><br>
> wrote:<br>
> >><br>
> >> It cannot be the complete file because earlier it says "enabled" and this<br>
> service does not have [Install] section.<br>
> >><br>
> >> Anyway - something has to start this service. So far, you did not explain<br>
> how it is started.<br>
> ><br>
> > It is the complete file. I mentioned that I had linked it. To elaborate:<br>
> ><br>
> > # ls -al /etc/systemd/system/first-boot-complete.target.wants/<br>
> > total 8<br>
> > drwxr-xr-x  Â  2 root  Â  Â root  Â  Â  Â  Â  4096 Apr  7 11:35 .<br>
> > drwxr-xr-x  Â 11 root  Â  Â root  Â  Â  Â  Â  4096 Apr  7 22:18 ..<br>
> > lrwxrwxrwx  Â  1 root  Â  Â root  Â  Â  Â  Â  Â  36 Apr  7 11:35 resizefs.service -><br>
> /etc/systemd/system/resizefs.service<br>
> ><br>
> > This is how the service is enabled. Thanks.<br>
> <br>
> So, your service Wants first-boot-complete.target and<br>
> first-boot-complete.target Wants your service. I still fail to see what<br>
> is causing either to be actually started.<br>
</blockquote></div></div></div>