Add support for configuring --stats-every (defaults to hourly)
This commit is contained in:
parent
977fc07c39
commit
3242fcaf29
7
debian/dump1090-mr.default
vendored
7
debian/dump1090-mr.default
vendored
|
@ -88,5 +88,12 @@ DUMP1090_USER="dump1090"
|
||||||
# Bind ports on a particular address. If unset, binds to all interfaces.
|
# Bind ports on a particular address. If unset, binds to all interfaces.
|
||||||
#BIND_ADDRESS=
|
#BIND_ADDRESS=
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc options
|
||||||
|
#
|
||||||
|
|
||||||
|
# Interval (in seconds) between logging stats to the logfile. 0 disables.
|
||||||
|
#STATS_INTERVAL=3600
|
||||||
|
|
||||||
# Additional options that are passed to the Daemon.
|
# Additional options that are passed to the Daemon.
|
||||||
#EXTRA_ARGS=""
|
#EXTRA_ARGS=""
|
||||||
|
|
4
debian/dump1090-mr.init
vendored
4
debian/dump1090-mr.init
vendored
|
@ -48,6 +48,7 @@ NET_OUTPUT_SIZE=5
|
||||||
NET_OUTPUT_RATE=5
|
NET_OUTPUT_RATE=5
|
||||||
NET_BUFFER=0
|
NET_BUFFER=0
|
||||||
BIND_ADDRESS=
|
BIND_ADDRESS=
|
||||||
|
STATS_INTERVAL=3600
|
||||||
EXTRA_ARGS=
|
EXTRA_ARGS=
|
||||||
|
|
||||||
# Read configuration variable file if it is present
|
# Read configuration variable file if it is present
|
||||||
|
@ -87,6 +88,9 @@ if [ "x$NET_OUTPUT_SIZE" != "x0" ]; then ARGS="$ARGS --net-ro-size $NET_OUTPUT_S
|
||||||
if [ "x$NET_OUTPUT_RATE" != "x0" ]; then ARGS="$ARGS --net-ro-rate $NET_OUTPUT_RATE"; fi
|
if [ "x$NET_OUTPUT_RATE" != "x0" ]; then ARGS="$ARGS --net-ro-rate $NET_OUTPUT_RATE"; fi
|
||||||
if [ "x$NET_BUFFER" != "x0" ]; then ARGS="$ARGS --net-buffer $NET_BUFFER"; fi
|
if [ "x$NET_BUFFER" != "x0" ]; then ARGS="$ARGS --net-buffer $NET_BUFFER"; fi
|
||||||
if [ -n "$BIND_ADDRESS" ]; then ARGS="$ARGS --net-bind-address $BIND_ADDRESS"; fi
|
if [ -n "$BIND_ADDRESS" ]; then ARGS="$ARGS --net-bind-address $BIND_ADDRESS"; fi
|
||||||
|
|
||||||
|
# misc:
|
||||||
|
if [ "x$STATS_INTERVAL" != "x0" ]; then ARGS="$ARGS --stats-every $STATS_INTERVAL"; fi
|
||||||
if [ -n "$EXTRA_ARGS" ]; then ARGS="$ARGS $EXTRA_ARGS"; fi
|
if [ -n "$EXTRA_ARGS" ]; then ARGS="$ARGS $EXTRA_ARGS"; fi
|
||||||
|
|
||||||
# Load the VERBOSE setting and other rcS variables
|
# Load the VERBOSE setting and other rcS variables
|
||||||
|
|
Loading…
Reference in a new issue