3 ms·
But it's nice when your init knows when a service is ready and can start the other stuff that depends on that one… Otherwise you're in retry hell.
by LtWorf 3y ago
But it's nice when your init knows when a service is ready and can start the other stuff that depends on that one… Otherwise you're in retry hell.
- jchw 3y agoHonestly, I'm a bit curious why sshd startup would ever be significant. Not sure. The most intensive operation I can think of that might happen at sshd startup would be host key generation, but at least in NixOS it looks like this is actually handled in an ExecStartPre= script, which I believe means it will happen before After= units execute. Of course I sincerely doubt that distributions decided to add sd_notify support just for the hell of it, so I am sure there is a reason, it's just not overtly obvious, especially considering plenty of distros don't do this and sshd (and dependent units presumably) certainly seems to work absolutely fine.
- LtWorf 3y agoWell I guess CI automations could use that.