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