From 0f091f25a091c7aa4a6a04a37ed61cc28632eca0 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 2 Aug 2013 16:49:43 +0100 Subject: [PATCH] ENH: wmakeScheduler: check for lockfile executable --- wmake/wmakeScheduler | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wmake/wmakeScheduler b/wmake/wmakeScheduler index f614e73758..c079883c6c 100755 --- a/wmake/wmakeScheduler +++ b/wmake/wmakeScheduler @@ -3,7 +3,7 @@ # ========= | # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox # \\ / O peration | -# \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation +# \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation # \\/ M anipulation | #------------------------------------------------------------------------------- # License @@ -170,6 +170,13 @@ colourPipe() colourIndex=0 +# Check for existence of lockfile binary +if ! type -p lockfile >/dev/null +then + echo "Could not find executable 'lockfile'" + exit 1 +fi + while : do for slotGroup in $WM_HOSTS