From 344114ae81264d2fcd882e15e2e20f821cae1f7d Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Fri, 29 Mar 2019 13:25:57 +0100 Subject: [PATCH] keepalived: add new option vrrp_startup_delay Redmine-patch-id: 3441 Add new global option vrrp_startup_delay to the uci. Signed-off-by: Florian Eckert --- net/keepalived/files/keepalived.config | 1 + net/keepalived/files/keepalived.init | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/net/keepalived/files/keepalived.config b/net/keepalived/files/keepalived.config index 5fde1f89d..7c1975ad5 100644 --- a/net/keepalived/files/keepalived.config +++ b/net/keepalived/files/keepalived.config @@ -10,6 +10,7 @@ config global_defs # option vrrp_mcast_group4 "224.0.0.18" # optional, default 224.0.0.18 # option vrrp_mcast_group6 "f02::12" # optional, default ff02::12 # option linkbeat_use_polling "1" +# option vrrp_startup_delay "5" #config ipaddress # option name "ipaddress0" diff --git a/net/keepalived/files/keepalived.init b/net/keepalived/files/keepalived.init index 70e0b7310..4e63711f4 100644 --- a/net/keepalived/files/keepalived.init +++ b/net/keepalived/files/keepalived.init @@ -105,8 +105,14 @@ global_defs() { config_get notification_email $1 notification_email print_list_indent notification_email - print_elems_indent $1 $INDENT_1 notification_email_from smtp_server smtp_connect_timeout \ - router_id vrrp_mcast_group4 vrrp_mcast_group6 + print_elems_indent $1 $INDENT_1 \ + notification_email_from \ + smtp_server \ + smtp_connect_timeout \ + router_id \ + vrrp_mcast_group4 \ + vrrp_mcast_group6 \ + vrrp_startup_delay } print_ipaddress_indent() {