summarylogtreecommitdiffstats
path: root/fr24feed.service
blob: ee0311bd5cdf9b9acc61e78c65761e8b31d5feaa (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
37
38
39
40
41
42
[Unit]
Description=Flightradar24 Decoder & Feeder
After=network-online.target

[Service]
Type=simple
Restart=on-failure
ExecStartPre=/usr/bin/fr24feed --validate-config --config-file=/etc/fr24feed.ini
ExecStart=/usr/bin/fr24feed --monitor-file=%T/decoder.txt --config-file=/etc/fr24feed.ini --unit fr24feed
StandardOutput=journal
StandardError=journal
ProtectProc=invisible
ProcSubset=pid
User=fr24
DynamicUser=yes
SupplementaryGroups=rtlsdr systemd-journal
CapabilityBoundingSet=
NoNewPrivileges=yes
UMask=0077
CPUSchedulingPolicy=idle
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=~user pid net uts mnt cgroup ipc
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @resources @swap
SystemCallArchitectures=native
Environment=PATH=/usr/lib/flightradar24:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

[Install]
WantedBy=multi-user.target