You are not logged in.

#1 2022-05-16 19:36:47

zanyithi67
Member
Registered: 2022-05-16
Posts: 1

Hibernation & systemd-networkd-wait-online.service

I have some services (with timers) that have this in the [Unit] section so they only run once the network is up and it works just fine after a reboot / boot.

Wants=network-online.target
After=network-online.target nss-lookup.target

However I use hibernate most of the time and only really reboot when there's a kernel update. My problem is that systemd-networkd-wait-online.service does not run when resuming from hibernation, so these services will often fail because network is not yet up when they run. I currently work around this with an ExecStart=/usr/bin/sleep 10 but was wondering if there is a way to have systemd-networkd-wait-online.service work after hibernate just as it does after reboot / boot.

Anyone know a solution to this? Thanks.

Offline

Board footer

Powered by FluxBB