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:
parent
2dd94c3254
commit
c9cd39aaac
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
flock /var/lib/elastic-recheck/er_safe_run.lock $@
|
flock -w 3600 /var/lib/elastic-recheck/er_safe_run.lock $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user