From 678e461ca755d090eb58475bbd50d78524486a77 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 20 Mar 2019 15:16:14 -0700 Subject: [PATCH] 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 --- files/er_safe_run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/er_safe_run.sh b/files/er_safe_run.sh index 2de5f91..3da372d 100755 --- a/files/er_safe_run.sh +++ b/files/er_safe_run.sh @@ -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 $@