openntpd was just one example of the issue. I tried setting After=network-online.target before opening this bug, it has no effect and is why I mentioned "xenial server (dunno about desktop) doesn't seem to use network-online.target".
network-online.target will be complete as soon as networking.service (ifup) has finished configuring interfaces. You can see this in my log output.
Jun 02 16:58:02 xenial64 systemd[1]: Reached target Network.
Jun 02 16:58:02 xenial64 systemd[1]: Starting OpenNTPd Network Time Protocol...
Jun 02 16:58:02 xenial64 systemd[1]: Reached target Network is Online. <----- network-online.target is complete
...
Jun 02 16:58:02 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Link is down
Jun 02 16:58:05 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Link is up at 1000 Mbps, full duplex
Jun 02 16:58:05 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Flow control is on for TX and on for RX
Jun 02 16:58:05 xenial64 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
Hi
openntpd was just one example of the issue. I tried setting After=network- online. target before opening this bug, it has no effect and is why I mentioned "xenial server (dunno about desktop) doesn't seem to use network- online. target" .
ubuntu@xenial64:~$ systemctl list-dependencies network- online. target online. target service
network-
● └─networking.
network- online. target will be complete as soon as networking.service (ifup) has finished configuring interfaces. You can see this in my log output.
Jun 02 16:58:02 xenial64 systemd[1]: Reached target Network. online. target is complete NETDEV_ CHANGE) : enp2s0: link becomes ready
Jun 02 16:58:02 xenial64 systemd[1]: Starting OpenNTPd Network Time Protocol...
Jun 02 16:58:02 xenial64 systemd[1]: Reached target Network is Online. <----- network-
...
Jun 02 16:58:02 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Link is down
Jun 02 16:58:05 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Link is up at 1000 Mbps, full duplex
Jun 02 16:58:05 xenial64 kernel: tg3 0000:02:00.0 enp2s0: Flow control is on for TX and on for RX
Jun 02 16:58:05 xenial64 kernel: IPv6: ADDRCONF(