put a 1hr timeout on flock blocking

From time to time the flock calls on the er system back up for an
unknown reason. However, when fixing another bug I found that flock
has a wait timeout. Set this to an hour so that if we fail to flock
after an hour we don't back up forever.

Change-Id: Ie574b994d2b5cc38f559d3d7f8dd980148cf0890
This commit is contained in:
Sean Dague 2015-11-17 12:10:16 -05:00
parent 2dd94c3254
commit c9cd39aaac
1 changed files with 1 additions and 1 deletions

View File

@ -1,3 +1,3 @@
#!/bin/bash
flock /var/lib/elastic-recheck/er_safe_run.lock $@
flock -w 3600 /var/lib/elastic-recheck/er_safe_run.lock $@