]> git.openstreetmap.org Git - chef.git/commitdiff
Always try and get the tile cleanup lock at least once
authorTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 12:33:00 +0000 (13:33 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 12:33:00 +0000 (13:33 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb

index 5a954e2950117687c167a349ee5f3ecb9bef17d3..9adf02aebb6439ffccde3a91e223e16c440e97cc 100644 (file)
@@ -11,7 +11,7 @@ use LockFile::Simple;
 
 my $tiledir = shift @ARGV;
 
 
 my $tiledir = shift @ARGV;
 
-my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 0, -warn => 0);
+my $lockmgr = LockFile::Simple->make(-autoclean => 1, -max => 1, -warn => 0);
 
 $lockmgr->lock("${tiledir}/cleanup") || exit 0;
 
 
 $lockmgr->lock("${tiledir}/cleanup") || exit 0;