[Opensrf-commits] r1251 - trunk/bin
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 3 09:06:30 EST 2008
Author: dbs
Date: 2008-03-03 08:34:25 -0500 (Mon, 03 Mar 2008)
New Revision: 1251
Modified:
trunk/bin/osrf_ctl.sh
Log:
Bail with a reasonable error message if OPT_CONFIG does not exist
Modified: trunk/bin/osrf_ctl.sh
===================================================================
--- trunk/bin/osrf_ctl.sh 2008-03-03 03:56:53 UTC (rev 1250)
+++ trunk/bin/osrf_ctl.sh 2008-03-03 13:34:25 UTC (rev 1251)
@@ -77,6 +77,10 @@
done
[ -z "$OPT_CONFIG" ] && OPT_CONFIG="$BASEDIR/conf/opensrf_core.xml";
+if [ ! -r "$OPT_CONFIG" ]; then
+ echo "Please specify the location of the opensrf_core.xml file using the -c flag";
+ exit 1;
+fi;
[ -z "$OPT_PID_DIR" ] && OPT_PID_DIR=/tmp;
[ -z "$OPT_ACTION" ] && usage;
More information about the opensrf-commits
mailing list