Commit 3792804c authored by Mike Hibler's avatar Mike Hibler
Browse files

Quick changes to fire off UDP server on plab nodes. To use:

	run make-tarball to create a new tarball
	run install-tarball to get it out
	run start-experiment
No swapout/in should be necessary as long as you are already using magent
(udp server is started out of auto-magent.sh)
parent 0d059bca
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -28,6 +28,17 @@ if [ ${MAGENT_NORECV:-0} -ne 0 ]; then
TARGETS="$TARGETS $IPERFD"
fi
#
# Start up the UDP receiver
#
if [ -x ${MAGENT_DIR}/UDP/UdpServerDir/UdpServer ]; then
port=3492
args="vnet $port"
echo "${MAGENT_DIR}/UDP/UdpServerDir/UdpServer $args"
$AS_ROOT ${MAGENT_DIR}/UDP/UdpServerDir/UdpServer $args &
TARGETS="$TARGETS UdpServer"
fi
echo $SH ${MAGENT_DIR}/run-magent.sh $ARGS
$SH ${MAGENT_DIR}/run-magent.sh --daemonize $ARGS
# Kill the agent if we get killed - TODO: harsher kill?
......
#!/bin/sh
#
# EMULAB-COPYRIGHT
# Copyright (c) 2006 University of Utah and the Flux Group.
# Copyright (c) 2006, 2007 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -20,8 +20,8 @@ if [ ! -d ../pelab ]; then
fi
echo "##### cleaning up a little"
rm -f magent/*.o stub/*.o
strip magent/magent stub/stubd libnetmon/netmonup
rm -f magent/*.o stub/*.o UDP/UdpServerDir/*.o
strip magent/magent stub/stubd libnetmon/netmonup magent/UDP/UdpServerDir/UdpServer
echo "##### creating tarball $path from .."
tar czf $path -C .. $files
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment