From cc9e4d3b822378e7c787d107c4ce0c86e438099e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 29 Apr 2020 19:38:00 +0200 Subject: [PATCH] keepalived: move linkbeat_use_polling section into main section Signed-off-by: Florian Eckert --- net/keepalived/files/keepalived.init | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/keepalived/files/keepalived.init b/net/keepalived/files/keepalived.init index a90bf6d0b1..05c47bb369 100644 --- a/net/keepalived/files/keepalived.init +++ b/net/keepalived/files/keepalived.init @@ -96,10 +96,7 @@ print_notify() { } globals() { - local linkbeat_use_polling notification_email - - config_get_bool linkbeat_use_polling "$1" linkbeat_use_polling 0 - [ "$linkbeat_use_polling" -gt 0 ] && printf 'linkbeat_use_polling\n\n' >> "$KEEPALIVED_CONF" + local notification_email config_get notification_email "$1" notification_email print_list_indent notification_email @@ -481,7 +478,7 @@ virtual_server() { } process_config() { - local alt_config_file + local alt_config_file linkbeat_use_polling rm -f "$KEEPALIVED_CONF" @@ -501,6 +498,9 @@ process_config() { return 0 } + config_get_bool linkbeat_use_polling globals linkbeat_use_polling 0 + [ "$linkbeat_use_polling" -gt 0 ] && printf 'linkbeat_use_polling\n\n' >> "$KEEPALIVED_CONF" + config_section_open "global_defs" config_foreach_wrapper globals config_section_close -- 2.30.2