pi@raspberrypi:~ $ sudo nano /etc/default/dump978-rb
# dump978-rb configuration
# This is sourced by /usr/share/dump978-rb/start-dump978-rb as a
# shellscript fragment.
# dump978-rb won't automatically start unless ENABLED=yes
ENABLED=yes
RECEIVER_OPTIONS="--sdr driver=rtlsdr,serial=00000401 --sdr-auto-gain --format CS8"
DECODER_OPTIONS=""
NET_OPTIONS="--raw-port 30978 --json-port 28380"
pi@raspberrypi:~ $ sudo nano /usr/share/dump978-rb/start-dump978-rb
#!/bin/sh
# Helper script that reads /etc/default/dump978-rb
# and either starts dump1090-fa with the configured
# arguments, or exits with status 64 to tell systemd
# not to auto-restart the service.
if [ -f /etc/default/dump978-rb ]
then
. /etc/default/dump978-rb
fi
if [ "x$ENABLED" != "xyes" ]
then
echo "dump978-rb not enabled in /etc/default/dump978-rb" >&2
exit 64
fi
exec /usr/bin/dump978-rb \
$RECEIVER_OPTIONS $DECODER_OPTIONS $NET_OPTIONS \
"$@"
# exec failed, do not restart
exit 64
pi@raspberrypi:~ $ sudo systemctl status rbfeeder
● rbfeeder.service - RBFeeder Service
Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-15 03:42:17 GMT; 39min ago
lines 1-3...skipping...
● rbfeeder.service - RBFeeder Service
Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-15 03:42:17 GMT; 39min ago
Process: 429 ExecStartPre=/bin/mkdir /var/run/rbfeeder (code=exited, status=0/SUCCESS)
Process: 481 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/run/rbfeeder (code=exited, status=0/SUCCESS)
Process: 488 ExecStartPre=/bin/touch /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
Process: 503 ExecStartPre=/bin/chown rbfeeder:rbfeeder /var/log/rbfeeder.log (code=exited, status=0/SUCCESS)
Process: 509 ExecStartPre=/bin/chown rbfeeder:rbfeeder /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
Process: 516 ExecStartPre=/bin/setfacl -m u:www-data:rwx /etc/rbfeeder.ini (code=exited, status=0/SUCCESS)
Main PID: 520 (rbfeeder)
Tasks: 13 (limit: 4915)
CPU: 9min 32.860s
CGroup: /system.slice/rbfeeder.service
├─520 /usr/bin/rbfeeder
├─28656 /usr/bin/python3.9 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900 --lat 43.5xxxx --lon -79.6xxxx --alt 155 --user EXTRPI000036 --results beast,connect,127.0.0.1:32004
└─630 /usr/bin/dump1090-rb --write-json /dev/shm/ --net --quiet --mlat --forward-mlat --net-bo-port 30105 --lat 43.5xxxx --lon -79.6xxxx --modeac --fix --adaptive-burst --adaptive-range --gnss
Mar 15 04:19:08 raspberrypi rbfeeder[520]: [2022-03-15 04:19:08] Data sent: 379.3 KB
Mar 15 04:19:08 raspberrypi rbfeeder[520]: [2022-03-15 04:19:08] Data received: 31 B
Mar 15 04:20:09 raspberrypi rbfeeder[520]: [2022-03-15 04:20:09] ******** Statistics updated every 60 seconds ********
Mar 15 04:20:09 raspberrypi rbfeeder[520]: [2022-03-15 04:20:09] Packets sent in the last 60 seconds: 253, Total packets sent since startup: 11680
Mar 15 04:20:09 raspberrypi rbfeeder[520]: [2022-03-15 04:20:09] Data sent: 387.5 KB
Mar 15 04:20:09 raspberrypi rbfeeder[520]: [2022-03-15 04:20:09] Data received: 31 B
Mar 15 04:21:10 raspberrypi rbfeeder[520]: [2022-03-15 04:21:10] ******** Statistics updated every 60 seconds ********
Mar 15 04:21:10 raspberrypi rbfeeder[520]: [2022-03-15 04:21:10] Packets sent in the last 60 seconds: 251, Total packets sent since startup: 11931
Mar 15 04:21:10 raspberrypi rbfeeder[520]: [2022-03-15 04:21:10] Data sent: 396.1 KB
Mar 15 04:21:10 raspberrypi rbfeeder[520]: [2022-03-15 04:21:10] Data received: 31 B
pi@raspberrypi:~ $ sudo systemctl status dump978-rb
● dump978-rb.service - dump978 ADS-B UAT receiver
Loaded: loaded (/lib/systemd/system/dump978-rb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-15 03:42:17 GMT; 33min ago
lines 1-3...skipping...
● dump978-rb.service - dump978 ADS-B UAT receiver
Loaded: loaded (/lib/systemd/system/dump978-rb.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-15 03:42:17 GMT; 33min ago
Docs: https://www.radarbox.com
Main PID: 534 (dump978-rb)
Tasks: 4 (limit: 4915)
CPU: 4min 16.470s
CGroup: /system.slice/dump978-rb.service
└─534 /usr/bin/dump978-rb --sdr driver=rtlsdr,serial=00000401 --sdr-auto-gain --format CS8 --raw-port 30978 --json-port 28380
Mar 15 03:42:18 raspberrypi dump978-rb[534]: Found Rafael Micro R820T tuner
Mar 15 03:42:19 raspberrypi dump978-rb[534]: Reattached kernel driver
Mar 15 03:42:19 raspberrypi dump978-rb[534]: Detached kernel driver
Mar 15 03:42:19 raspberrypi dump978-rb[534]: Found Rafael Micro R820T tuner
Mar 15 03:42:19 raspberrypi dump978-rb[534]: Exact sample rate is: 2083333.135571 Hz
Mar 15 03:42:19 raspberrypi dump978-rb[534]: [R82XX] PLL not locked!
Mar 15 03:42:19 raspberrypi dump978-rb[534]: SoapySDR: using automatic gain
Mar 15 03:42:19 raspberrypi dump978-rb[534]: SoapySDR: using stream setting buffsize=262144
Mar 15 03:42:19 raspberrypi dump978-rb[534]: Allocating 15 zero-copy buffers
Mar 15 03:42:20 raspberrypi dump978-rb[534]: 0.0.0.0:28380: accepted a connection from 127.0.0.1:59588
.