puppet-elastic_recheck/files/er_safe_run.sh
Sean Dague c9cd39aaac 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
2015-11-17 12:14:32 -05:00

4 lines
72 B
Bash
Executable File

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