On Wed, Dec 13, 2023 at 11:06 PM Greg Wooledge <g...@wooledge.org> wrote:
> Is that on a system that lacks a process manager?  Something like
> "systemctl reload ssh" or "service ssh reload" would be preferred from
> a system admin POV, on systems that have process managers.
I am not super knowledgeable in this kind of stuff, but would that not
cause you to lose your SSH connection?

> And before bash 5.2,
>
>     read -r pid < /var/run/sshd.pid && sudo kill -s SIGHUP "$pid"
>
> would be more efficient, on systems where no process manager is in use.
Yeah, that's fair. This is in the interactive shell, though, so how
long it takes to run isn't a huge concern.

Reply via email to