On a systemd machine (e.g. Debian), whenever I issue a reboot, among the very first things that get killed is sshd
. This wasn't the case in the not-so-great-but-also-not-too-bad sysvinit days, where I could still watch and sometimes fix issues going wrong during a reboot via SSH.
I'd be fine with sshd to not get sent a TERM
signal at all or ideally as one of the very last processes, even after network has been shut down. Is there a way to achieve this with systemd?
I'd also be interested in a way to make sshd
get started as one of the first services, but that's less of a priority.