added more portable (perl) hostname fetching to pass to the C code, updated docs
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 19 Mar 2007 22:04:57 +0000 (22:04 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 19 Mar 2007 22:04:57 +0000 (22:04 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@843 9efc2488-bf62-4759-914b-345cdb29e865

bin/osrf_ctl.sh

index 02fb9a6..5be1533 100755 (executable)
@@ -134,8 +134,9 @@ function stop_perl {
 }
 
 function start_c {
-       do_action "start" $PID_OSRF_C "OpenSRF C";
-       opensrf-c $(hostname -f) $OPT_C_CONFIG opensrf;
+    host=$(perl -MNet::Domain=hostfqdn -e 'print hostfqdn()')
+       do_action "start" $PID_OSRF_C "OpenSRF C (host=$host)";
+       opensrf-c $host $OPT_C_CONFIG opensrf;
        pid=$(ps ax | grep "OpenSRF System-C" | grep -v grep | awk '{print $1}')
        echo $pid > "$PID_OSRF_C";
        return 0;