[systemd-devel] Starting a service before any networking

Mark Rogers mark at more-solutions.co.uk
Tue Sep 26 19:41:50 UTC 2023


On Tue, 26 Sept 2023 at 19:38, Mantas Mikulėnas <grawity at gmail.com> wrote:

> That's not a race condition; it's a fault in the network interface
> itself. "NO-CARRIER" means it's physically unable to establish the
> Ethernet link – an external condition that the service ordering has no
> effect on.
>

That's interesting.

In that case, how is it that
    ip link set eth0 down
    ip link set eth0 up
.. consistently brings the network up? (I have tested that sequence dozens
of times.) What is that doing that isn't happening during a normal boot?

This being a Raspberry Pi I believe that the Ethernet port hangs of the USB
bus internally in case that's relevant.

(I should be able to find another Pi to test for any physical hardware
issues, I'll try that tomorrow.)
-- 
Mark Rogers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20230926/da0eff40/attachment.htm>


More information about the systemd-devel mailing list