From: erickson Date: Mon, 19 Mar 2007 22:04:57 +0000 (+0000) Subject: added more portable (perl) hostname fetching to pass to the C code, updated docs X-Git-Tag: osrf_rel_2_0_1~1052 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f771aa0f97194db19a297d71cbd03ba768ce8a68;p=OpenSRF.git added more portable (perl) hostname fetching to pass to the C code, updated docs git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@843 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/bin/osrf_ctl.sh b/bin/osrf_ctl.sh index 02fb9a6..5be1533 100755 --- a/bin/osrf_ctl.sh +++ b/bin/osrf_ctl.sh @@ -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;