[hamradio-commits] [dump1090-mutability] 10/172: Add support for configuring --stats-every (defaults to hourly)

Matteo F. Vescovi mfv at moszumanska.debian.org
Sun Jan 28 13:45:40 UTC 2018


This is an automated email from the git hooks/post-receive script.

mfv pushed a commit to branch master
in repository dump1090-mutability.

commit 56b3bb77ccfa59c45446250a61bcd86dd8127ac4
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Sat Dec 6 16:08:17 2014 +0000

    Add support for configuring --stats-every (defaults to hourly)
---
 debian/dump1090-mr.default | 7 +++++++
 debian/dump1090-mr.init    | 4 ++++
 2 files changed, 11 insertions(+)

diff --git a/debian/dump1090-mr.default b/debian/dump1090-mr.default
index f5e40a8..c5a4cce 100644
--- a/debian/dump1090-mr.default
+++ b/debian/dump1090-mr.default
@@ -88,5 +88,12 @@ DUMP1090_USER="dump1090"
 # Bind ports on a particular address. If unset, binds to all interfaces.
 #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.
 #EXTRA_ARGS=""
diff --git a/debian/dump1090-mr.init b/debian/dump1090-mr.init
index 96f0ae4..77e70fc 100644
--- a/debian/dump1090-mr.init
+++ b/debian/dump1090-mr.init
@@ -48,6 +48,7 @@ NET_OUTPUT_SIZE=5
 NET_OUTPUT_RATE=5
 NET_BUFFER=0
 BIND_ADDRESS=
+STATS_INTERVAL=3600
 EXTRA_ARGS=
 
 # 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_BUFFER" != "x0" ]; then ARGS="$ARGS --net-buffer $NET_BUFFER"; 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
 
 # Load the VERBOSE setting and other rcS variables

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git



More information about the pkg-hamradio-commits mailing list