mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-10 07:04:13 +02:00
UNIX socket permission is needed for xmltv integration. The PID file is not created or used because the systemd service is "simple" with tvheadend running in the foreground. Closes: https://bugs.gentoo.org/690120 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
25 lines
512 B
Desktop File
25 lines
512 B
Desktop File
[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
|