Change lockfile suffix to .lock.

This commit is contained in:
Andreas Bachlechner 2022-02-23 13:18:33 +01:00
parent a739e5dacb
commit 97669bfe65
1 changed files with 1 additions and 1 deletions

View File

@ -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: $!";