flock lockfile path comes before the command to lock

When I added the timeout I didn't move the lock file path properly. Fix
this by putting the lock file path before the timeout command to flock.

Change-Id: Iacf8d55f9cfe5b2c92569929bbdadebbe2f8de09
This commit is contained in:
Clark Boylan 2019-03-20 15:16:14 -07:00
parent 014bc3b72e
commit 678e461ca7
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
# Timeout after 4 hours as we've seen this script occasionally fail to
# exit after running for days.
flock -w 3600 timeout -k 60 14400 /var/lib/elastic-recheck/er_safe_run.lock $@
flock -w 3600 /var/lib/elastic-recheck/er_safe_run.lock timeout -k 60 14400 $@