jellyfin.service 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [Unit]
  2. Description = Jellyfin Media Server
  3. After = network-online.target
  4. [Service]
  5. Type = simple
  6. EnvironmentFile = /etc/default/jellyfin
  7. User = jellyfin
  8. ExecStart = /usr/bin/jellyfin ${JELLYFIN_WEB_OPT} ${JELLYFIN_RESTART_OPT} ${JELLYFIN_FFMPEG_OPT} ${JELLYFIN_SERVICE_OPT} ${JELLYFIN_NOWEBAPP_OPT} ${JELLYFIN_ADDITIONAL_OPTS}
  9. Restart = on-failure
  10. TimeoutSec = 15
  11. NoNewPrivileges=true
  12. SystemCallArchitectures=native
  13. RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
  14. RestrictNamespaces=true
  15. RestrictRealtime=true
  16. RestrictSUIDSGID=true
  17. ProtectControlGroups=true
  18. ProtectHostname=true
  19. ProtectKernelLogs=true
  20. ProtectKernelModules=true
  21. ProtectKernelTunables=true
  22. LockPersonality=true
  23. PrivateTmp=true
  24. PrivateDevices=false
  25. PrivateUsers=true
  26. RemoveIPC=true
  27. SystemCallFilter=~@clock
  28. SystemCallFilter=~@aio
  29. SystemCallFilter=~@chown
  30. SystemCallFilter=~@cpu-emulation
  31. SystemCallFilter=~@debug
  32. SystemCallFilter=~@keyring
  33. SystemCallFilter=~@memlock
  34. SystemCallFilter=~@module
  35. SystemCallFilter=~@mount
  36. SystemCallFilter=~@obsolete
  37. SystemCallFilter=~@privileged
  38. SystemCallFilter=~@raw-io
  39. SystemCallFilter=~@reboot
  40. SystemCallFilter=~@setuid
  41. SystemCallFilter=~@swap
  42. SystemCallErrorNumber=EPERM
  43. [Install]
  44. WantedBy = multi-user.target