}
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
}
process_config() {
- local alt_config_file
+ local alt_config_file linkbeat_use_polling
rm -f "$KEEPALIVED_CONF"
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