From: Erik Karlsson Date: Wed, 12 Apr 2023 16:09:07 +0000 (+0200) Subject: openssh: add respawn and reloading via signal X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7029af834c17648c6e76c795e89003aa687c818d;p=feed%2Fpackages.git openssh: add respawn and reloading via signal Configure the openssh server to respawn. Reload by sending SIGHUP Signed-off-by: Erik Karlsson --- 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