From f771aa0f97194db19a297d71cbd03ba768ce8a68 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 19 Mar 2007 22:04:57 +0000 Subject: [PATCH] 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 --- bin/osrf_ctl.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.11.0