[Opensrf-commits] r1707 - branches/rel_1_0/bin (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri May 29 16:42:49 EDT 2009


Author: erickson
Date: 2009-05-29 16:42:45 -0400 (Fri, 29 May 2009)
New Revision: 1707

Modified:
   branches/rel_1_0/bin/osrf_ctl.sh
Log:
try finding osrf_config in the users PATH first to prevent the use of 'find' when possible (find + NFS = watching paint dry)

Modified: branches/rel_1_0/bin/osrf_ctl.sh
===================================================================
--- branches/rel_1_0/bin/osrf_ctl.sh	2009-05-29 20:41:39 UTC (rev 1706)
+++ branches/rel_1_0/bin/osrf_ctl.sh	2009-05-29 20:42:45 UTC (rev 1707)
@@ -87,7 +87,8 @@
 	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



More information about the opensrf-commits mailing list