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 01d88afd17d563acf4ffc7580133e69e9194e507..03745c995b23c691b6de8a3b82893fa1b339d483 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
 }