From 97669bfe6544ff0d70bdb5c9f32d44abd5840726 Mon Sep 17 00:00:00 2001 From: Andreas Bachlechner <62039342+bachandi@users.noreply.github.com> Date: Wed, 23 Feb 2022 13:18:33 +0100 Subject: [PATCH] Change lockfile suffix to .lock. --- lib/Monitorix.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Monitorix.pm b/lib/Monitorix.pm index 82e7c68..988775c 100644 --- a/lib/Monitorix.pm +++ b/lib/Monitorix.pm @@ -515,7 +515,7 @@ sub flush_accounting_rules { sub lockfile_handler { my ($config) = @_; if (lc($config->{enable_rrd_lock} || "") eq "y") { - my $lock_file = "/tmp/monitorix.flock"; + my $lock_file = "/tmp/monitorix.lock"; my $lockfile_was_available = (-e $lock_file); open(my $fh, ">>", $lock_file) or die "Can't open $lock_file: $!";