projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbed201
)
Always try and get the tile cleanup lock at least once
author
Tom Hughes
<tom@compton.nu>
Tue, 15 Oct 2013 12:33:00 +0000
(13:33 +0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 15 Oct 2013 12:33:00 +0000
(13:33 +0100)
cookbooks/tile/templates/default/cleanup-tiles.erb
patch
|
blob
|
history
diff --git
a/cookbooks/tile/templates/default/cleanup-tiles.erb
b/cookbooks/tile/templates/default/cleanup-tiles.erb
index 5a954e2950117687c167a349ee5f3ecb9bef17d3..9adf02aebb6439ffccde3a91e223e16c440e97cc 100644
(file)
--- 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;