diff options
Diffstat (limited to 'www-apps/jellyfin-bin/files/jellyfin.service')
-rw-r--r-- | www-apps/jellyfin-bin/files/jellyfin.service | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www-apps/jellyfin-bin/files/jellyfin.service b/www-apps/jellyfin-bin/files/jellyfin.service new file mode 100644 index 000000000000..f20bfeb3e352 --- /dev/null +++ b/www-apps/jellyfin-bin/files/jellyfin.service @@ -0,0 +1,38 @@ +[Unit] +Description = Jellyfin Media Server +After=syslog.target network.target + +[Service] +User=jellyfin +Group=jellyfin + +Type=simple +StateDirectory=jellyfin +CacheDirectory=jellyfin +LogsDirectory=jellyfin +ConfigurationDirectory=jellyfin +ExecStart=/opt/jellyfin/jellyfin --logdir "$LOGS_DIRECTORY" --cachedir "$CACHE_DIRECTORY" --configdir "$CONFIGURATION_DIRECTORY" --datadir "$STATE_DIRECTORY" +TimeoutStopSec=20 +KillMode=process +Restart=always + +PrivateTmp=yes +PrivateMounts=yes +ProtectHome=yes +ProtectSystem=full +NoNewPrivileges=yes +ProtectHostname=yes +ProtectClock=yes +ProtectKernelTunables=yes +ProtectKernelModules=yes +ProtectKernelLogs=yes +ProtectControlGroups=yes +RemoveIPC=true +RestrictRealtime=yes +DeviceAllow=char-drm rw +DeviceAllow=char-nvidia-frontend rw +DeviceAllow=char-nvidia-uvm rw + +[Install] +WantedBy=multi-user.target + |