[Xorp-hackers] BGP harness question related to 'runit'

Ben Greear greearb at candelatech.com
Fri Apr 23 16:07:01 PDT 2010


I notice that this or similar logic is found in most of the BGP test harness
scripts:

if [ $START_PROGRAMS = "yes" ]
then
     CXRL="$CALLXRL -r 10"
     runit $QUIET $VERBOSE -c "$0 -s -c $*" <<EOF
     ../../libxipc/xorp_finder
     ../../fea/xorp_fea_dummy  = $CXRL finder://fea/common/0.1/get_target_name
     ../../rib/xorp_rib        = $CXRL finder://rib/common/0.1/get_target_name
     ../xorp_bgp               = $CXRL finder://bgp/common/0.1/get_target_name
     ./test_peer -s peer1      = $CXRL finder://peer1/common/0.1/get_target_name
     ./coord                   = $CXRL finder://coord/common/0.1/get_target_name
EOF
     trap '' 0
     exit $?
fi


Even after tweaking for correct binary paths, the applications fail to properly
start unless I delete everything after the first token.  For instance:


if [ $START_PROGRAMS = "yes" ]
then
     CXRL="$CALLXRL -r 10"
     runit $QUIET $VERBOSE -c "$0 -s -c $*" <<EOF
     ../../libxipc/xorp_finder
     ../../fea/xorp_fea_dummy
     ../../rib/xorp_rib
     ../xorp_bgp
     ./test_peer -s peer1
     ./coord
EOF
     trap '' 0
     exit $?
fi


Anyone know what that CXRL logic was supposed to accomplish?  Maybe it only
works with xorp_rtrmgr is running?

Thanks,
Ben


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-hackers mailing list