From: erickson Date: Fri, 29 May 2009 20:42:45 +0000 (+0000) Subject: try finding osrf_config in the users PATH first to prevent the use of 'find' when... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a4139f0f4f844611ae781b8165ed5eaeb21edfd4;p=OpenSRF.git 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/branches/rel_1_0@1707 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index f696dc9..5584fdf 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