From: Florian Eckert Date: Thu, 10 Nov 2022 14:11:04 +0000 (+0100) Subject: keepalived: add PING_CHECK to real_server X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5462d06ba86ff728850e621b789556da32d5432e;p=feed%2Fpackages.git keepalived: add PING_CHECK to real_server Signed-off-by: Florian Eckert --- diff --git a/net/keepalived/Makefile b/net/keepalived/Makefile index 9ef1a0349b..3ca584a371 100644 --- a/net/keepalived/Makefile +++ b/net/keepalived/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=keepalived PKG_VERSION:=2.2.8 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://www.keepalived.org/software diff --git a/net/keepalived/files/keepalived.init b/net/keepalived/files/keepalived.init index b13f10c40e..77f1e1778f 100644 --- a/net/keepalived/files/keepalived.init +++ b/net/keepalived/files/keepalived.init @@ -502,6 +502,10 @@ real_server() { printf '%breal_server %s %d {\n' "${INDENT_1}" "$ipaddr" "$port" >> "$KEEPALIVED_CONF" printf '%bweight %d\n' "${INDENT_2}" "$weight" >> "$KEEPALIVED_CONF" case "$check" in + PING_CHECK) + printf '%b%s {\n' "${INDENT_2}" "$check" >> "$KEEPALIVED_CONF" + printf '%b}\n' "${INDENT_2}" >> "$KEEPALIVED_CONF" + ;; TCP_CHECK) printf '%b%s {\n' "${INDENT_2}" "$check" >> "$KEEPALIVED_CONF" print_elems_indent "$1" "$INDENT_3" connect_timeout \