<div dir="ltr"><div dir="ltr">On Wed, Aug 13, 2025 at 8:22 AM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Tue, Aug 12, 2025 at 11:59 AM Silvio Knizek <<a href="mailto:killermoehre@gmx.net" target="_blank">killermoehre@gmx.net</a>> wrote:<br>
><br>
> Am Dienstag, dem 12.08.2025 um 11:02 +0300 schrieb Andrei Borzenkov:<br>
><br>
> I spent some time trying to understand why a service that should have been started was not. It turned out rather simple - the service was WantedBy=default.target, I explicitly used "3" on the kernel command line and this made systemd to ignore /etc/systemd/system/default.target.wants.<br>
><br>
> Is there any reason to not treat systemd.unit as default in this case? After all, "default target" is the target that systemd starts when running as /sbin/init and passing systemd.unit is entirely equivalent to overriding default.target once at run-time.<br>
><br>
> Hi Andrei,<br>
><br>
> 3 on the k-c-l means "isolate into multi-user.target", not "make the multi-user.target the default.target" or "isolate into default.target".<br>
><br>
> So your default.target was never started.<br>
><br>
<br>
Sigh. Please explain the reason why starting multi-user.target as<br>
alias to defaut.target should start different services compared to<br>
starting multi-user.target as systemd.target on the kernel command<br>
line. </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
I know how it is implemented and why it happens. I ask whether this<br>
behavior is intentional and reasonable.<br></blockquote><div><br></div><div>Hi Andrei,</div><div><br></div><div>I don't find current behavior reasonable. Whether it is intentional or not I do not know, but I don't think so.</div><div><br></div><div>In any case, I have seen people using (and expecting) WantedBy=default.target to mean "please attempt to start this unit in any default target". Using 3 on kernel cmdline is setting default target for current boot (from user PoV), and hence unit should be started in my opinion.</div><div><br></div><div>Michal</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
> If you want default behaviour, don't specify anything.<br>
><br>
> BR<br>
> Silvio<br>
<br>
</blockquote></div></div>