-
Notifications
You must be signed in to change notification settings - Fork 19
systemd service for mlat client
wiedehopf edited this page Jul 1, 2019
·
1 revision
/etc/default/mlat1
# command line options for mlat-client number 1
USER="--user 5h4d0wM4st3r"
# altitude above sea level: 123m / 404ft (or without units in meters, only option for negative altitudes above sea level)
LOCATION="--lat 54.12345 --lon 12.12345 --alt 123"
INPUT="--input-type dump1090 --input-connect localhost:30005"
NET="--server feed.adsbexchange.com:31090 --no-udp"
RESULTS="--results beast,connect,localhost:30104"
/lib/systemd/system/mlat1.service
[Unit]
Description=mlat1
Wants=network.target
After=network.target
[Service]
EnvironmentFile=/etc/default/mlat1
User=dump1090
ExecStart=/usr/bin/mlat-client $USER $LOCATION $INPUT $NET $RESULTS
Type=simple
Restart=always
RestartSec=30
RestartPreventExitStatus=64
SyslogIdentifier=mlat1
[Install]
WantedBy=default.target
User=dump1090 can be left out if that user is non-existent or you want to run the program as root for some reason.
sudo systemctl enable mlat1
sudo systemctl restart mlat1