Once upon a time, Gary Buhrmaster <gary.buhrmas...@gmail.com> said: > On Mon, Apr 21, 2025 at 3:17 PM Gabriel L. Somlo <gso...@gmail.com> wrote: > > Adding `After=networ-online.target` to `sendmail.service` does *not* > > seem to help. > > As I recall, the network is considered > "online" a lot earlier than you might > think (after the loopback is up?) > without additional requirements. If > you want to wait for your system to > (possibly) acquire a dhcp address > and possibly acquire a name, you > need to also make sure one of the > appropriate network configuration > complete services (depending > on your network configuration > preferences) are enabled. > > NetworkManager-wait-online > -or- > systemd-networkd-wait-online
That is incorrect. network-online.target is a special unit that is after whatever network system thinks the network is "up". For example, NetworkManager-wait-online.service explictly declares Before=network-online.target. You should not ever need to refer to the individual services, network-online.target is sufficient. -- Chris Adams <li...@cmadams.net> -- _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue