From: Tom Hughes Date: Tue, 15 Oct 2013 12:33:00 +0000 (+0100) Subject: Always try and get the tile cleanup lock at least once X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b88032f37b95d57ed9d27d31eee1afaa3e158e02?ds=inline Always try and get the tile cleanup lock at least once --- diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 5a954e295..9adf02aeb 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -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;