}
function start_c {
- host=$(perl -MNet::Domain=hostfqdn -e 'print hostfqdn()')
+ host=$OSRF_HOSTNAME
+ if [ "_$host" == "_" ]; then
+ host=$(perl -MNet::Domain=hostfqdn -e 'print hostfqdn()');
+ fi;
+
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}')
sub load_env {
my $self = shift;
- my $host = hostfqdn();
+ my $host = $ENV{'OSRF_HOSTNAME'} || hostfqdn();
chomp $host;
$$self{env} = $self->section_pkg->new;
$$self{env}{hostname} = $host;