jellyfin.service.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Jellyfin systemd configuration options
  2. # Use this file to override the user or environment file location.
  3. [Service]
  4. # Alter the user that Jellyfin runs as
  5. #User = jellyfin
  6. # Alter where environment variables are sourced from
  7. #EnvironmentFile = /etc/default/jellyfin
  8. # Service hardening options
  9. # These were added in PR #6953 to solve issue #6952, but some combination of
  10. # them causes "restart.sh" functionality to break with the following error:
  11. # sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the
  12. # 'nosuid' option set or an NFS file system without root privileges?
  13. # See issue #7503 for details on the troubleshooting that went into this.
  14. # Since these were added for NixOS specifically and are above and beyond
  15. # what 99% of systemd units do, they have been moved here as optional
  16. # additional flags to set for maximum system security and can be enabled at
  17. # the administrator's or package maintainer's discretion.
  18. # Uncomment these only if you know what you're doing, and doing so may cause
  19. # bugs with in-server Restart and potentially other functionality as well.
  20. #NoNewPrivileges=true
  21. #SystemCallArchitectures=native
  22. #RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
  23. #RestrictNamespaces=false
  24. #RestrictRealtime=true
  25. #RestrictSUIDSGID=true
  26. #ProtectControlGroups=false
  27. #ProtectHostname=true
  28. #ProtectKernelLogs=false
  29. #ProtectKernelModules=false
  30. #ProtectKernelTunables=false
  31. #LockPersonality=true
  32. #PrivateTmp=false
  33. #PrivateDevices=false
  34. #PrivateUsers=true
  35. #RemoveIPC=true
  36. #SystemCallFilter=~@clock
  37. #SystemCallFilter=~@aio
  38. #SystemCallFilter=~@chown
  39. #SystemCallFilter=~@cpu-emulation
  40. #SystemCallFilter=~@debug
  41. #SystemCallFilter=~@keyring
  42. #SystemCallFilter=~@memlock
  43. #SystemCallFilter=~@module
  44. #SystemCallFilter=~@mount
  45. #SystemCallFilter=~@obsolete
  46. #SystemCallFilter=~@privileged
  47. #SystemCallFilter=~@raw-io
  48. #SystemCallFilter=~@reboot
  49. #SystemCallFilter=~@setuid
  50. #SystemCallFilter=~@swap
  51. #SystemCallErrorNumber=EPERM