commit: 8085f241c486d2e44a04f6e6f65b778a86325b21 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> AuthorDate: Sun Sep 2 11:19:36 2018 +0000 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> CommitDate: Sun Sep 2 11:43:08 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8085f241
media-tv/tvheadend: Fix systemd service unit I haven't tested this as I don't use systemd. Closes: https://bugs.gentoo.org/654346 Package-Manager: Portage-2.3.48, Repoman-2.3.10 media-tv/tvheadend/files/tvheadend.service | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/media-tv/tvheadend/files/tvheadend.service b/media-tv/tvheadend/files/tvheadend.service index 2d0573ca910..6d1e27445b7 100644 --- a/media-tv/tvheadend/files/tvheadend.service +++ b/media-tv/tvheadend/files/tvheadend.service @@ -3,19 +3,22 @@ Description=tvheadend After=network.target [Service] -Type=forking +Type=simple 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 +EnvironmentFile=/etc/conf.d/tvheadend +ExecStart=/usr/bin/tvheadend -p /run/tvheadend/tvheadend.pid -c "${TVHEADEND_CONFIG}" ${TVHEADEND_OPTIONS} +TimeoutStartSec=1m +TimeoutStopSec=20s Restart=always -RestartSec=5 +RestartSec=5s DevicePolicy=closed -DeviceAllow=char-DVB rw # DVB devices -DeviceAllow=char-drm rw # GPUs for transcoding +DeviceAllow=char-DVB rw +DeviceAllow=char-drm rw RestrictAddressFamilies=AF_INET AF_INET6 -ProtectSystem=strict +ProtectSystem=yes ProtectHome=yes NoNewPrivileges=yes
