Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Jetchko Jekov
A good example of a service that needs to be started before networking is the firewall service. You can take a look at what your distro of choice is providing for hints. But essentially it boils down to something like this: Fedora's iptables.service: Before=network-pre.target Wants=network-pre.tar

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mark Rogers
On Wed, 27 Sept 2023 at 11:31, Silvio Knizek wrote: > Why does this sounds like https://github.com/raspberrypi/linux/issues/3195? > Maybe you find starting there some more information. > I agree it does sound similar. That said I am on a Pi3 (not a Pi4) and later kernel (4.19.97-v7+). But it is

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Silvio Knizek
Am Mittwoch, dem 27.09.2023 um 10:31 +0100 schrieb Mark Rogers: > On Wed, 27 Sept 2023 at 10:18, Mantas Mikulėnas > <[[email protected]](mailto:[email protected])> wrote: > > > So now I'm curious: if the first command you run is to bring the interface > > *down*, then what exactly brought it up?

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mark Rogers
On Wed, 27 Sept 2023 at 10:18, Mantas Mikulėnas wrote: > So now I'm curious: if the first command you run is to bring the interface > *down*, then what exactly brought it up? > Good question. The reason for down/up was that this was working as a way to reset the connection after boot, so I just

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mantas Mikulėnas
On Wed, Sep 27, 2023 at 12:14 PM Mark Rogers wrote: > On Wed, 27 Sept 2023 at 09:39, Mantas Mikulėnas wrote: > >> It might be an issue with the kernel driver for your Ethernet interface, >> then (as setting the interface 'up/down' usually reinitializes the >> controller) – or possibly a physical

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mark Rogers
On Wed, 27 Sept 2023 at 09:39, Mantas Mikulėnas wrote: > It might be an issue with the kernel driver for your Ethernet interface, > then (as setting the interface 'up/down' usually reinitializes the > controller) – or possibly a physical issue with your cable or your switch, > but it doesn't seem

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mantas Mikulėnas
On Wed, Sep 27, 2023 at 11:23 AM Mark Rogers wrote: > On Tue, 26 Sept 2023 at 20:41, Mark Rogers > wrote: > >> (I should be able to find another Pi to test for any physical hardware >> issues, I'll try that tomorrow.) >> > > I have today tested on a different Pi, different PSU, different cable,

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Jan Hugo Prins
I think the main problem you are running into is the DefaultDependencies option. When this is set to on, several default dependencies are being enforced which make sure that at least a basic system is up and running before anything else is started. When you want to start something before the ba

Re: [systemd-devel] Starting a service before any networking

2023-09-27 Thread Mark Rogers
On Tue, 26 Sept 2023 at 20:41, Mark Rogers wrote: > (I should be able to find another Pi to test for any physical hardware > issues, I'll try that tomorrow.) > I have today tested on a different Pi, different PSU, different cable, all with exactly the same results. There is definitely something