mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
openssh: add respawn and reloading via signal
Configure the openssh server to respawn. Reload by sending SIGHUP Signed-off-by: Erik Karlsson <erik.karlsson@genexis.eu>
This commit is contained in:
committed by
Rosen Penev
parent
b7b1fe6cb3
commit
7029af834c
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user