
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
4 lines
72 B
Bash
Executable File
4 lines
72 B
Bash
Executable File
#!/bin/bash
|
|
|
|
flock -w 3600 /var/lib/elastic-recheck/er_safe_run.lock $@
|