43 lines
1.1 KiB
Desktop File
43 lines
1.1 KiB
Desktop File
[Unit]
|
||
Description=simply-dvb – DVB-T/T2/C server (HLS, M3U, EPG)
|
||
Documentation=file:///usr/share/doc/simply-dvb/README.md
|
||
Wants=network-online.target
|
||
After=network-online.target systemd-udev-settle.service
|
||
|
||
[Service]
|
||
Type=simple
|
||
User=simply-dvb
|
||
Group=simply-dvb
|
||
SupplementaryGroups=video
|
||
EnvironmentFile=-/etc/default/simply-dvb
|
||
Environment=RUST_LOG=simply_dvb=info,warn
|
||
ExecStart=/usr/bin/simply-dvb serve
|
||
Restart=on-failure
|
||
RestartSec=3
|
||
StateDirectory=simply-dvb
|
||
StateDirectoryMode=0750
|
||
WorkingDirectory=/var/lib/simply-dvb
|
||
UMask=0027
|
||
# Access only to DVB devices (and DRM – ffmpeg/VAAPI acceleration)
|
||
DevicePolicy=closed
|
||
DeviceAllow=char-DVB rw
|
||
DeviceAllow=char-drm rw
|
||
NoNewPrivileges=true
|
||
PrivateTmp=true
|
||
ProtectSystem=strict
|
||
ProtectHome=true
|
||
ReadWritePaths=/var/lib/simply-dvb
|
||
ProtectKernelTunables=true
|
||
ProtectKernelModules=true
|
||
ProtectKernelLogs=true
|
||
ProtectControlGroups=true
|
||
RestrictSUIDSGID=true
|
||
RestrictNamespaces=true
|
||
RestrictRealtime=true
|
||
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||
LockPersonality=true
|
||
SystemCallArchitectures=native
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target
|