From 7029af834c17648c6e76c795e89003aa687c818d Mon Sep 17 00:00:00 2001 From: Erik Karlsson Date: Wed, 12 Apr 2023 18:09:07 +0200 Subject: [PATCH] openssh: add respawn and reloading via signal Configure the openssh server to respawn. Reload by sending SIGHUP Signed-off-by: Erik Karlsson --- net/openssh/files/sshd.init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/net/openssh/files/sshd.init b/net/openssh/files/sshd.init index e7735364dc..0b859e146e 100644 --- a/net/openssh/files/sshd.init +++ b/net/openssh/files/sshd.init @@ -27,9 +27,14 @@ start_service() { procd_open_instance procd_add_mdns "ssh" "tcp" "$lport" procd_set_param command $PROG -D + procd_set_param respawn procd_close_instance } +reload_service() { + procd_send_signal sshd +} + shutdown() { local pid -- 2.30.2