try finding osrf_config in the users PATH first to prevent the use of 'find' when...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 29 May 2009 20:41:39 +0000 (20:41 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 29 May 2009 20:41:39 +0000 (20:41 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1706 9efc2488-bf62-4759-914b-345cdb29e865

bin/osrf_ctl.sh

index 4c0a3cf..e7e34b9 100755 (executable)
@@ -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