[Unit] Description=tvheadend After=network.target [Service] #Type=forking Type=simple User=tvheadend Group=video RuntimeDirectory=tvheadend PIDFile=/run/tvheadend/tvheadend.pid PermissionsStartOnly=true #ExecStart=/usr/bin/tvheadend -6 -d -f -p /run/tvheadend/tvheadend.pid -C -c /etc/tvheadend ExecStart=/usr/bin/tvheadend -6 -d -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