Bug#982950: ssh.service starts sshd before network is online: please switch to After=network-online.target instead of just After=network.target

Chris Hofstaedtler <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <20210218161930.yrmrlw43f2qd3hrx__876.185640093752$1613665284$gmane$org@zeha.at>
* Thomas Goirand <[email protected]> [210218 17:03]:
> On 2/18/21 12:59 PM, Timo Weingärtner wrote:
> > 17.02.21 21:42 Chris Hofstaedtler:
> >> Services that use After=network-online.target are generally broken,
> >> please do not introduce that.
> > 
> > Seconded. Just consider a node where one link is down on boot and you would 
> > have to wait such a long time until you can examine the problem via ssh.
> 
> I still don't understand this part. If network isn't online, how can I
> ssh to my server anyways?

Thats exactly the problem description: everyone and every service
has a different idea of "network is online".

I'm also happy with "fe80::x" IPv6 is ready - for ssh. Don't need to
wait for IPv4 DHCP or a default gateway or whatever.

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.