Commit 63cfa942 authored by Robert Ricci's avatar Robert Ricci

Don't run the magent in the background - it will background itself.

We'll kill it using killall - not graceful, but should work.
parent ae4b5046
......@@ -8,7 +8,7 @@ ARGS=$*
# Start up our own measurement agent
#
echo $SH ${MAGENT_DIR}/run-magent.sh $ARGS
$SH ${MAGENT_DIR}/run-magent.sh $ARGS &
$SH ${MAGENT_DIR}/run-magent.sh $ARGS
MAGENTPID=$!
# Kill the agent if we get killed - TODO: harsher kill?
trap "$AS_ROOT kill $MAGENTPID; $AS_ROOT killall $MAGENT" EXIT
......
Markdown is supported
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