When no adsbexchange uuid was present the sed replacement can fail to
replace anything because the pattern doesn't exist.
In that case the entire readsb conf array is used as an UUID.
Fix that by checking each conf array entry if there is a adsbexchange
uuid and only then use the sed replace.
Move file cleanups into a finish script for the service that created the
file (replace 02 / replace 03 commits)
Currently there is a whole dependency forest just to start a couple of
startup scripts in order.
Additionally all the services also have a dependency on all the startup
scripts.
This is unnecessary complex, simplify it:
- Move startup scripts to /etc/s6-overlay/startup.d
- oneshot service named "startup" from underlying image executes
all files in /etc/s6-overlay/startup.d in alphabetical order
- Remove various oneshot scripts from longrun service dependencies
Add "startup" oneshot service to longrun service dependencies
container-version is now being run by said startup script, remove the
double s6wrap prepending of an appropriate log name.
Move startup scripts to /etc/s6-overlay/startup.d
oneshot service named "startup" from underlying image executes
all files in /etc/s6-overlay/startup.d in alphabetical order
Remove various oneshot scripts from longrun service dependencies
Add "startup" oneshot service to longrun service dependencies
03-remove-mlathub-up deletes /run/mlathub_up when the container stops
As this file is created by the mlat-client service, remove it instead in
a finish script for mlat-client which is run when the mlat-client
service is stopped
02-remove-prometheus-data deletes /run/readsb-prometheus.prom when
the container stops
As this file is created by readsb, remove it instead in a finish script
for readsb which is run when the readsb service is stopped
Increasing the beast-reduce flush interval will reduce network load for
aggregators by sending less but larger network packets.
mlat-client startup can take quite some time when using several
aggregators, add an ENV var so people can reduce it if they prefer.
mlathub was using beast_reduce_out to send data, this is local transfer
so using beast_reduce is not necessary. (mlat results are not high
message rate in any case)
The docs suggest you can do this, but the code does not allow for it.
This fixes that so you can specify your own port.
I've spotted an error in the docs too, MR for that repo will be along
shortly.