Re: Starting a service before any networking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 26 Sept 2023 at 13:08, Mantas Mikulėnas <grawity@xxxxxxxxx> wrote:
Depends on what exactly runs dhcpcd and wpa_supplicant. Is that done by networking.service (ifupdown)? NetworkManager? Are they standalone services?

How do I tell?

(System is a Pi running an elderly Raspbian. The issue I am having is that the device is not getting an IP address - if i wait until booted I have to issue "ip link set eth0 down" and "ip link set eth0 up" to get it to retry the DHCP request ("up" alone isn't sufficient, despite "ip addr" showing the interface as DOWN. I am assuming that this is because the config file isn't in place when dhcpcd starts but I may be mistaken.)
 
I would generally expect Before/Wants=network-pre.target to work, but that relies on your network services themselves being set up correctly – they too need to order themselves After that target.

In that case I should probably return to Before/Wants=network-pre.target and work out what is breaking it, but same question as above: how do I figure that out?
 
--
Mark Rogers


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux