</default>
<hosts>
- <localhost> <!-- must match "hostname -f" of the hosting machine -->
+
+ <localhost>
+ <!-- ^-=- must match the fully qualified domain name of the host
+ on Linux, this is usually the output of "hostname -f"
+ -->
+
<activeapps>
<!-- services hosted on this machine -->
<appname>opensrf.settings</appname>
}
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;