From 58943d407ac5e97184893cf03f4651e914a0a11d Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 29 May 2009 20:41:39 +0000 Subject: [PATCH] try finding osrf_config in the users PATH first to prevent the use of 'find' when possible (find + NFS = watching paint dry) git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1706 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/osrf_ctl.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index 4c0a3cf..e7e34b9 100755 --- a/bin/osrf_ctl.sh +++ b/bin/osrf_ctl.sh @@ -87,7 +87,8 @@ while getopts "a:d:c:lh" flag; do esac; done -OSRF_CONFIG=`find $BASEDIR -name osrf_config` +OSRF_CONFIG=`which osrf_config` +[ -z "$OSRF_CONFIG" ] && OSRF_CONFIG=`find $BASEDIR -name osrf_config` [ -z "$OPT_CONFIG" ] && OPT_CONFIG=`$OSRF_CONFIG --sysconfdir`/opensrf_core.xml; if [ ! -r "$OPT_CONFIG" ]; then -- 2.11.0