keepalived: move linkbeat_use_polling section into main section
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
c4d1af42e8
commit
cc9e4d3b82
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue