From 67de4dc9cb8bb39d92576352f0f9bf5cc0994a4a Mon Sep 17 00:00:00 2001 From: Mikael Nordin Date: Mon, 16 Jan 2017 14:00:20 +0100 Subject: [PATCH] Now it works --- cluster_cron.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster_cron.pl b/cluster_cron.pl index 7bb4c69..dacfa62 100755 --- a/cluster_cron.pl +++ b/cluster_cron.pl @@ -216,7 +216,7 @@ sub run { # If we have an active shared cronfile, we should also have an old shared # See if I am the one if (is_active(get_nodes) ){ - if(compare($cronfile, $passivesharedcronfile) == 0) { + if(compare($cronfile, $passivesharedcronfile) == 0 and compare($cronfile, $activesharedcronfile) != 0) { print "There has been a failover, switching to active cronfile\n"; copy($activesharedcronfile, $cronfile); }