[Opensrf-commits] r1706 - trunk/bin (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri May 29 16:41:43 EDT 2009


Author: erickson
Date: 2009-05-29 16:41:39 -0400 (Fri, 29 May 2009)
New Revision: 1706

Modified:
   trunk/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: trunk/bin/osrf_ctl.sh
===================================================================
--- trunk/bin/osrf_ctl.sh	2009-05-22 22:54:52 UTC (rev 1705)
+++ trunk/bin/osrf_ctl.sh	2009-05-29 20:41:39 UTC (rev 1706)
@@ -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