summaryrefslogtreecommitdiff
path: root/media-tv/tvheadend/files/tvheadend.service
blob: 2d0573ca910f6e18f6365b799d75272bc1a3157a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=tvheadend
After=network.target

[Service]
Type=forking
User=tvheadend
Group=video
RuntimeDirectory=tvheadend
PIDFile=/run/tvheadend/tvheadend.pid
ExecStart=/usr/bin/tvheadend -6 -f -p /run/tvheadend.pid -C -c /etc/tvheadend
Restart=always
RestartSec=5
DevicePolicy=closed
DeviceAllow=char-DVB rw # DVB devices
DeviceAllow=char-drm rw # GPUs for transcoding
RestrictAddressFamilies=AF_INET AF_INET6
ProtectSystem=strict
ProtectHome=yes
NoNewPrivileges=yes

[Install]
WantedBy=multi-user.target