Many of the big distros (Debian + derivatives, Fedora, etc...) patch use Type=notify for openssh systemd unit file instead of Type=simple. Unfortunately, this requires a small patch for OpenSSH (see systemd_readiness patch in https://sources.debian.org/patches/openssh/1:7.4p1-10+deb9u4/) This makes detecting successful OpenSSH startup more reliable. Do we want this in Gentoo? I stumbled upon this while investigating: https://github.com/gsauthof/dracut-sshd/issues/2#issuecomment-447111404 Reproducible: Always
Generally, I'm not in favor of adding patches that do not come from upstream...
Well, if consensus is not to add that patch, I'm fine. I was just trying to figure out sshd timeouts in my initramfs. But I can workaround them locally.
I don't see a very good reason to do this. Detecting startup errors is mainly useful when other services order themselves after the service being started. I'm not aware of any services that order themselves after sshd.service. If I'm missing some important use case here, please let me know and we can find a solution.
Well, dracut-sshd project added a note for Gentoo: https://github.com/gsauthof/dracut-sshd/commit/249c8e87df44c7dde2ef607cc66f69f484f697fb Shall we close this then?