From b88032f37b95d57ed9d27d31eee1afaa3e158e02 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Oct 2013 13:33:00 +0100 Subject: [PATCH] Always try and get the tile cleanup lock at least once --- cookbooks/tile/templates/default/cleanup-tiles.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.2