From 33911c0c61aad054afa95ef028e57836d1a3221b Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 10 Oct 2007 20:38:14 +0000 Subject: [PATCH] adding -l for localhost support git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1103 9efc2488-bf62-4759-914b-345cdb29e865 --- bin/osrf_ctl.sh | 3 ++- examples/opensrf.xml.example | 4 ++-- examples/srfsh.xml.example | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index 8958204..efc29f5 100755 --- a/bin/osrf_ctl.sh +++ b/bin/osrf_ctl.sh @@ -41,11 +41,12 @@ function usage { # --------------------------------------------------------------------------- # Load the command line options and set the global vars # --------------------------------------------------------------------------- -while getopts "c:a:d:h" flag; do +while getopts "c:a:d:l:h" flag; do case $flag in "a") OPT_ACTION="$OPTARG";; "c") OPT_CONFIG="$OPTARG";; "d") OPT_PID_DIR="$OPTARG";; + "l") export OSRF_HOSTNAME="localhost";; "h"|*) usage;; esac; done diff --git a/examples/opensrf.xml.example b/examples/opensrf.xml.example index fa2bc44..ad33887 100644 --- a/examples/opensrf.xml.example +++ b/examples/opensrf.xml.example @@ -175,7 +175,7 @@ - +