jellyfin.service 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. ProtectClock=true
  18. ProtectControlGroups=true
  19. ProtectHostname=true
  20. ProtectKernelLogs=true
  21. ProtectKernelModules=true
  22. ProtectKernelTunables=true
  23. LockPersonality=true
  24. PrivateTmp=true
  25. PrivateDevices=false
  26. PrivateUsers=true
  27. RemoveIPC=true
  28. SystemCallFilter=~@clock
  29. SystemCallFilter=~@aio
  30. SystemCallFilter=~@chown
  31. SystemCallFilter=~@cpu-emulation
  32. SystemCallFilter=~@debug
  33. SystemCallFilter=~@keyring
  34. SystemCallFilter=~@memlock
  35. SystemCallFilter=~@module
  36. SystemCallFilter=~@mount
  37. SystemCallFilter=~@obsolete
  38. SystemCallFilter=~@privileged
  39. SystemCallFilter=~@raw-io
  40. SystemCallFilter=~@reboot
  41. SystemCallFilter=~@setuid
  42. SystemCallFilter=~@swap
  43. SystemCallErrorNumber=EPERM
  44. [Install]
  45. WantedBy = multi-user.target