On Fri, Oct 09, 2015 at 09:46:47PM BST, Allyn Bottorff wrote: > >Your network interface might not be fully initialized when the smtpd > >service attempts to start. > > > >Try monkeying with the smtpd.service unit file dependencies as per > > I agree with you that the network startup is probably part of the > problem, but I'm not sure why this isn't sufficient: > > [Unit] > Description=OpenSMTPD > Requires=network.target > After=network.target > [Service] > Type=forking > ExecStart=/usr/bin/smtpd > [Install] > WantedBy=multi-user.target > > I'll keep digging though. Thanks for the advice.
Because 'network.target' doesn't actually wait for any of the interfaces to be up - what you want is 'network-online.target'[0]. Regards, Raf [0] https://wiki.freedesktop.org/www/Software/systemd/NetworkTarget/ -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
