summaryrefslogtreecommitdiff
path: root/media-tv/tvheadend/files/tvheadend.service
blob: 778786b7c1b709942e162266257e8b4e4a06e69e (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
[Unit]
Description=tvheadend
After=network.target

[Service]
Type=simple
User=tvheadend
Group=video
RuntimeDirectory=tvheadend
EnvironmentFile=/etc/conf.d/tvheadend
ExecStart=/usr/bin/tvheadend -c ${TVHEADEND_CONFIG} $TVHEADEND_OPTIONS
TimeoutStartSec=1m
TimeoutStopSec=20s
Restart=always
RestartSec=5s
DevicePolicy=closed
DeviceAllow=char-DVB rw
DeviceAllow=char-drm rw
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
ProtectSystem=yes
ProtectHome=yes
NoNewPrivileges=yes

[Install]
WantedBy=multi-user.target