summarylogtreecommitdiffstats
path: root/readsb.service
blob: bbfa8d415018bec35d48354fb0347d84f03c353a (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
# readsb service for systemd

[Unit]
Description=readsb ADS-B receiver (wiedehopf fork)
Documentation=https://github.com/wiedehopf/readsb
Wants=network.target
After=network.target

[Service]
EnvironmentFile=/etc/default/readsb
User=readsb
RuntimeDirectory=readsb
RuntimeDirectoryMode=0755
ExecStart=/usr/bin/readsb $RECEIVER_OPTIONS $DECODER_OPTIONS $NET_OPTIONS $JSON_OPTIONS --write-json /run/readsb --quiet
Type=simple
Restart=on-failure
RestartSec=30
Nice=-5

# Hardening configulation
ProtectSystem=full
ProtectHome=true
PrivateTmp=disconnected
PrivateMounts=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
ProtectProc=ptraceable
LockPersonality=true
ProtectClock=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=default.target