mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-15 20:03:57 +02:00
keepalived: add PING_CHECK to real_server
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
5bfbc58983
commit
5462d06ba8
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue
Block a user