Raspberry pi 4 and wait for network

I’m running the current osmc 2026.05 on a raspberry pi 4 without automatic start of kodi - I run many services on top of osmc (like e.g. NFS or weewx). Network is hardwired ethernet. Works fine. But I always encounter problems after a fresh reboot because some services rely on network availability. Just today I’ve discovered that I had to engage “wait for network” within osmc GUI for that purpose. Now those services are started automatically as intended. Thus my main issue is resolved.

But the service systemd-networkd-wait-online.service is dead. I can restart it manually without issue. But I could as well disable that service (to avoid the dead service).

What is the correct setup of osmc to get “wait on network” without that dead service? How does osmc remember its system settings? I’ve looked within /boot/config*.txt - but I couldn’t see where “wait on network” is stored.

Regards, Michael

PS: There is a similar service for connman to wait for network, also dead. I’m using NFS, might that be the reason?

Hi,

It’s a systemd unit (connman).
It’s connman-wait-for-network.service

Sam

Thanks for your answer. But that service reports to be dead. I’ve checked its ExecStart - it’s running fine. Re-running “systemctl start connman-wait-for-network” runs, but remains dead:

connman-wait-for-network.service - Wait for Network to be Configured
Loaded: loaded (/lib/systemd/system/connman-wait-for-network.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Fri 2026-08-07 07:55:15 CEST; 10min ago
Process: 13943 ExecStart=/bin/bash -c if grep -q nfsroot /proc/cmdline; then exit 0; fi; count=60; while >
Main PID: 13943 (code=exited, status=0/SUCCESS)
CPU: 19ms

But it works as expected during boot - I only wonder why it later reports as dead despite the service is configured as oneshot. Maybe a bug within systemd? Concluding i’ll ignore that error message.

It’s dead because it runs and when it has done its job it exits. It doesn’t sit around. Once network is up, it stops.

That was exactly my understanding - but from my perspective “dead” sounds like an error. I’d expect something like “done” or so. “dead” reminds me on zombie processes indicating problems. But now I know that everything is correct.

Thanks, Michael

1 Like

You’re welcome.