summarylogtreecommitdiffstats
path: root/adsbexchange-stats.service
blob: 2ae84cf9ea454ff53443b8c2067fde85ea49dcfa (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
# The script creates a file with  uuid in /boot, but that is
# not a good reason to run as root. A new uuid will be used
# every time the script runs and that has little impact. But
# you can use the below command to create the file and make it
# persist.
# uuidgen -t | sudo tee /boot/adsbx-uuid

[Unit]
Description=ADSBexchange Stats
Wants=network.target readsb.service
After=network.target readsb.service

[Service]
Type=simple
User=readsb
RuntimeDirectory=adsbexchange-stats
RuntimeDirectoryMode=0755
WorkingDirectory=/run/adsbexchange-stats
ExecStart=/usr/bin/adsbexchange-stats
Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target