blob: acb65beaa319029cc217b4066fa1c0a0ba6761b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# readsb service for systemd
[Unit]
Description=readsb ADS-B receiver
Documentation=https://github.com/mictronics/readsb
Wants=network.target
After=network.target
[Service]
EnvironmentFile=/etc/default/readsb
User=readsb
RuntimeDirectory=readsb
RuntimeDirectoryMode=0755
ExecStart=/usr/bin/readsb --gain -10 \
--ppm 0 \
--max-range 360 \
--net \
--net-heartbeat 60 \
--net-ro-size 1200 \
--net-ro-interval 0.1 \
--net-ri-port 0 \
--net-ro-port 30002 \
--net-sbs-port 30003 \
--net-bi-port 30004,30104 \
--net-bo-port 30005 \
--json-location-accuracy 1 \
--write-json /run/readsb \
$USER_OPTIONS --quiet
Type=simple
Restart=on-failure
RestartSec=30
Nice=-5
[Install]
WantedBy=default.target
|