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
Try adding "restart":
[Service]
Type=forking
ExecStart=/usr/bin/smtpd
Restart=always
(See "man systemd.service")
At least, with "restart" Systemd should keep retrying to start smtpd
until the network is fully available.
--
You received this mail because you are subscribed to misc@opensmtpd.org
To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org