mirror of https://github.com/mikaku/Monitorix.git
Change lockfile suffix to .lock.
This commit is contained in:
parent
a739e5dacb
commit
97669bfe65
|
@ -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: $!";
|
||||
|
|
Loading…
Reference in New Issue