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 5a954e2..9adf02a 100644 (file)
@@ -11,7 +11,7 @@ use LockFile::Simple;
 
 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;