local retry=5
echo -n "Waiting for nameserver to start..."
until "${command}-control" status | grep -q "is running" ; do
host -W 1 -R ${retry} -t NS com 127.0.0.1 > /dev/null && echo " good" || echo " giving up"
if [ $((retry -= 1)) -eq 0 ] ; then
echo " giving up"
return 1
fi
echo -n "."
sleep 1
done
echo " good"
}
load_rc_config $name