mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +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_open_instance
|
||||||
procd_add_mdns "ssh" "tcp" "$lport"
|
procd_add_mdns "ssh" "tcp" "$lport"
|
||||||
procd_set_param command $PROG -D
|
procd_set_param command $PROG -D
|
||||||
|
procd_set_param respawn
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reload_service() {
|
||||||
|
procd_send_signal sshd
|
||||||
|
}
|
||||||
|
|
||||||
shutdown() {
|
shutdown() {
|
||||||
local pid
|
local pid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user