Commit 9b239951 authored by Mike Hibler's avatar Mike Hibler

Tweaks to support progress reporting.

parent cd6188a3
......@@ -5,6 +5,14 @@
# BEFORE: testbed
# KEYWORD: shutdown
#
# XXX there should be a "subbossinfo" tmcd call to return these things:
#
# MCBASEADDR, UNICAST, BANDWIDTH, MCQUERIER, REPORT, ESERVER
#
# which we should stick in a DB table.
#
#
# Base multicast address.
# By default for the null config we use, it is "239.192.1".
......@@ -31,6 +39,20 @@ BANDWIDTH=
MCQUERIER=
#MCQUERIER=yes
#
# Client reporting interval.
# XXX this should come from the sitevar on boss, but for now we hardwire it.
# Unset to disable.
#
#REPORT=
REPORT=60
#
# Event server for client reports.
#
#ESERVER=
ESERVER=boss
#
# Set to run with debugging enabled.
#
......@@ -117,6 +139,18 @@ if [ -n "$BANDWIDTH" ]; then
fi
fi
if [ -n "$REPORT" ]; then
str="report=$REPORT"
if [ -n "$ESERVER" ]; then
str="$str,eventserver=$ESERVER"
fi
if [ -z "$opts" ]; then
opts="-O $str"
else
opts="$opts,$str"
fi
fi
if [ -z "$DEBUG" -a -x @prefix@/sbin/daemon_wrapper ]; then
@prefix@/sbin/daemon_wrapper -i 30 -l @prefix@/log/mfrisbeed_wrapper.log \
@prefix@/sbin/mfrisbeed -d $args $opts
......
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