boa won't start without ethernet
Brought to you by:
jnelson
We have a system that communicates in the field via an
intermittent ppp link. If we have the ethernet
interface active, boa starts and runs without issue. If
we don't have either ethernet or ppp active, boa won't
start and issues this message:
sh-2.03# /etc/init.d/boa start
Starting Boa webserver: gethostbyname:: Resource
temporarily unavailable
Logged In: NO
This seems to be in config.c. If the "ServerName" config
property is not set, a gethostname() followed by
gethostbyname() is invoked. The first call succeeded in our
case, but the second one didn't. I've remedied this
temporarily by setting "ServerName" to a known value.