Usage
Command-line¶
Command-line usage is available by running adsbcot -h
.
usage: adsbcot [-h] [-c CONFIG_FILE] [-p PREF_PACKAGE]
options:
-h, --help show this help message and exit
-c CONFIG_FILE, --CONFIG_FILE CONFIG_FILE
Optional configuration file. Default: config.ini
-p PREF_PACKAGE, --PREF_PACKAGE PREF_PACKAGE
Optional connection preferences package zip file (aka data package).
Run as a service / Run forever¶
- Add the text contents below a file named
/etc/systemd/system/adsbcot.service
You can usenano
orvi
editors:sudo nano /etc/systemd/system/adsbcot.service
- Reload systemctl:
sudo systemctl daemon-reload
- Enable ADSBCOT:
sudo systemctl enable adsbcot
- Start ADSBCOT:
sudo systemctl start adsbcot
adsbcot.service
Content¶
[Unit]
Description=ADSBCOT - Display Aircraft in TAK
Documentation=https://adsbcot.rtfd.io
Wants=network.target
After=network.target
# Uncomment this line if you're running dump1090 & adsbcot on the same computer:
# After=dump1090-fa.service
[Service]
RuntimeDirectoryMode=0755
ExecStart=/usr/local/bin/adsbcot -c /etc/adsbcot.ini
SyslogIdentifier=adsbcot
Type=simple
Restart=always
RestartSec=30
RestartPreventExitStatus=64
Nice=-5
[Install]
WantedBy=default.target
Pay special attention to the
ExecStart
line above. You'll need to provide the full local filesystem path to both your adsbcot executable & adsbcot configuration files.