Comment 2 for bug 1667769

Revision history for this message
Julian Andres Klode (juliank) wrote :

Unfortunately for us, systemd provides no good interface to improve things. There's the ability to wait on network, but AFAIUI that does not really help much, as it does not deal with resume. Also waiting on the network could time out, and the service would then be marked as failed and also run 12 hours later.

The best solution would be to have a service that runs while the machine is online and that other units can bind to: Then you could bind the timer (!) to the online-ness of the system.

That said, Wants=network-online.target and After=network-online.target or similar are probably better than nothing.