adding -l for localhost support
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 10 Oct 2007 20:38:14 +0000 (20:38 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 10 Oct 2007 20:38:14 +0000 (20:38 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1103 9efc2488-bf62-4759-914b-345cdb29e865

bin/osrf_ctl.sh
examples/opensrf.xml.example
examples/srfsh.xml.example

index 8958204..efc29f5 100755 (executable)
@@ -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
index fa2bc44..ad33887 100644 (file)
 
   <hosts>
 
-    <myhost.mydomain.org>
+    <localhost>
 <!-- ^-=-
        Must match the fully qualified domain name of the host 
        on Linux, this is usually the output of "hostname -f"
 
       </apps>
 
-    </myhost.mydomain.org>
+    </localhost>
 
   </hosts>
 
index e88ae6b..11b1b4d 100644 (file)
@@ -3,7 +3,7 @@
 <srfsh>
   <router_name>router</router_name>
   <domains>
-    <domain>127.0.0.1</domain>
+    <domain>localhost</domain>
   </domains>
   <username>myusername</username>
   <passwd>mypassword</passwd>