From faa6138ee7105456c74fde5b8a66ec4601305318 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/ILS/trunk@7079 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/examples/opensrf.xml.example | 7 ++++++- OpenSRF/bin/osrf_ctl.sh | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Open-ILS/examples/opensrf.xml.example b/Open-ILS/examples/opensrf.xml.example index bd4dd501c9..af81517736 100644 --- a/Open-ILS/examples/opensrf.xml.example +++ b/Open-ILS/examples/opensrf.xml.example @@ -627,7 +627,12 @@ Example opensrf config file for OpenILS - + + + + opensrf.settings diff --git a/OpenSRF/bin/osrf_ctl.sh b/OpenSRF/bin/osrf_ctl.sh index 02fb9a6fdb..5be15336e7 100755 --- a/OpenSRF/bin/osrf_ctl.sh +++ b/OpenSRF/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