gentoo-ebuilds/media-tv/tvheadend/files/tvheadend.service
James Le Cuirot 2ebcc4c065
media-tv/tvheadend: Bump snapshot to 20240618, fix systemd service
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>
2024-06-22 23:00:24 +01:00

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