On Mo, 21.04.25 11:16, Gabriel L. Somlo (gso...@gmail.com) wrote: > On Sun, Apr 20, 2025 at 10:03:50PM +0100, Barry wrote: > > > On 20 Apr 2025, at 18:50, Gabriel L. Somlo <gso...@gmail.com> wrote: > > > > > > Please keep in mind that this is a "cattle" machine started from an > > > image shared with a bunch of other machines. The only thing > > > distinguishing between them is the static dhcp lease and associated dns > > > name that are stored *externally* to the machine(s). > > > > In which case I would check that the sendmail service does not start until > > after the network online target. Which I assume will then see the fqdn from > > dhcp. > > Adding `After=networ-online.target` to `sendmail.service` does *not* > seem to help. Just to be sure, I also tried `s/After=/Requires=/`, > with the same unsatisfactory result...
You made a typo there, it's network-online.target, not networ-online.target. This is a generic target though, you need to actually plug something behind that. With networkd you can do that via "systemctl enable systemd-networkd-wait-online.service". NM has something similar. Note that means your boot will be delayed until networking is complete. Depending on your setup that might or might not be what you want. And if you have more than a single interface you might want to fine-tune what "being online" means specifically. They knobs for that depend on your networking stack however. Lennart -- Lennart Poettering, Berlin -- _______________________________________________ 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