projects
/
working
/
OpenSRF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a30ef
)
Bail with a reasonable error message if OPT_CONFIG does not exist
author
dbs
<dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 3 Mar 2008 13:34:25 +0000
(13:34 +0000)
committer
dbs
<dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 3 Mar 2008 13:34:25 +0000
(13:34 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1251
9efc2488
-bf62-4759-914b-
345cdb29e865
bin/osrf_ctl.sh
patch
|
blob
|
history
diff --git
a/bin/osrf_ctl.sh
b/bin/osrf_ctl.sh
index
c440b0f
..
3fd6bfb
100755
(executable)
--- a/
bin/osrf_ctl.sh
+++ b/
bin/osrf_ctl.sh
@@
-77,6
+77,10
@@
while getopts "a:d:clh" flag; do
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;