Once upon a time, Gary Buhrmaster <[email protected]> said:
> On Mon, Apr 21, 2025 at 3:17 PM Gabriel L. Somlo <[email protected]> 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 <[email protected]>
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to