Am 22.12.20 um 14:17 schrieb Mantas Mikulėnas:
As a special case, when a target has Wants= for some unit, it will
automatically add an After= as well. (So from your unit's point of view,
you have [Install] WantedBy=network-online.target, so you can imagine
that you automatically have a Before=network-online.target as well –
unless you explicitly specify the opposite.)
when it's part of "network-online.target" what is wrong in that case it
hardly can have a implicit "Before=network-online.target"
"it will automatically add an After=" at the same time as "automatically
have a Before=" is simply impossible
However, Docker has "After=network-online.target", so you end up
creating an ordering loop
that is the problem
"WantedBy=multi-user.target" is the right thing for nearly all units
unless you know exactly what you are doing and why
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel