dropbear: add respawn param in case dropbear crashes
authorFelix Fietkau <nbd@openwrt.org>
Thu, 24 Sep 2015 08:37:40 +0000 (08:37 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 24 Sep 2015 08:37:40 +0000 (08:37 +0000)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 47033

package/network/services/dropbear/files/dropbear.init

index 01d88af..03745c9 100755 (executable)
@@ -79,6 +79,7 @@ dropbear_instance()
        [ "${IdleTimeout}" -ne 0 ] && procd_append_param command -I "${IdleTimeout}"
        [ "${SSHKeepAlive}" -ne 0 ] && procd_append_param command -K "${SSHKeepAlive}"
        [ "${mdns}" -ne 0 ] && procd_add_mdns "ssh" "tcp" "$Port" "daemon=dropbear"
+       procd_set_param respawn
        procd_close_instance
 }