summaryrefslogtreecommitdiff
path: root/scripts/keepalived
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/keepalived')
-rwxr-xr-xscripts/keepalived/vyatta-keepalived.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/keepalived/vyatta-keepalived.pl b/scripts/keepalived/vyatta-keepalived.pl
index d151b605..fa82b023 100755
--- a/scripts/keepalived/vyatta-keepalived.pl
+++ b/scripts/keepalived/vyatta-keepalived.pl
@@ -34,9 +34,7 @@ use Getopt::Long;
use strict;
use warnings;
-my $changes_file = '/var/log/vrrpd/changes';
-my $conf_file = get_conf_file();
-
+my ($conf_file, $changes_file);
my %HoA_sync_groups;
sub validate_source_addr {
@@ -402,6 +400,8 @@ if (! defined $action) {
}
if ($action eq "update") {
+ $changes_file = get_changes_file();
+ $conf_file = get_conf_file();
vrrp_log("vrrp update $vrrp_intf");
if ( ! -e $changes_file) {
my $num_changes = vrrp_find_changes();