From 609519cac493b68cc0a5b2fdabb6036be859b826 Mon Sep 17 00:00:00 2001 From: dbs Date: Mon, 3 Mar 2008 13:34:25 +0000 Subject: [PATCH] Bail with a reasonable error message if OPT_CONFIG does not exist git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1251 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/osrf_ctl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index c440b0f..3fd6bfb 100755 --- 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; -- 2.43.2