keepalived: add PING_CHECK to real_server
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 10 Nov 2022 14:11:04 +0000 (15:11 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 4 Oct 2023 15:00:42 +0000 (17:00 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/keepalived/Makefile
net/keepalived/files/keepalived.init

index 9ef1a0349b725282610f5f887431cafba1b94cc8..3ca584a37159be2ca8264e00d2c8566e3735559f 100644 (file)
@@ -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
index b13f10c40e472e023d02e6f150a8d66ecd6210a2..77f1e1778fc39f5f79e67e87229b943a0e39614e 100644 (file)
@@ -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 \