You are not logged in.

#1 2025-08-05 09:24:03

mborden
Member
Registered: 2025-08-05
Posts: 1

Quadlet/Systemd lazy network-online.target issue.

I'm trying to get rootless quadlet user services working.

When I run

systemctl --user start my.service

it hangs for 90 seconds before starting. I am fairly sure I have determined that it's due to the podman-user-wait-network-online.service which is running this script when I inspect it:

/bin/sh -c until systemctl is-active network-online.target; do sleep 0.5; done

I tried running

systemctl is-active network-online.target

and it was indeed not active despite clearly having a fully functional networking setup. I then ran

systemctl enable --now network-online.target

which understandably prints out that there is no install section for network-online.target but regardless, after running it,

systemctl is-active network-online.target

returns active and my quadlets start without delay. I reproduced this on a fresh arch install in a VM.

This is a problem after every restart, and having quadlets enabled with lingering means there is an annoying delay before services come back up. What is needed to resolve network-online.target not being active after the network starts on boot?

Thanks!

Offline

#2 2025-08-11 22:32:46

hcartiaux
Member
From: France
Registered: 2014-08-20
Posts: 7
Website

Re: Quadlet/Systemd lazy network-online.target issue.

I don't have a clean solution, but you are exactly in this case:
https://github.com/containers/podman/issues/24796

Offline

Board footer

Powered by FluxBB