systemd-journald.service 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  5. # systemd is free software; you can redistribute it and/or modify it
  6. # under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or
  8. # (at your option) any later version.
  9. [Unit]
  10. Description=Journal Service
  11. Documentation=man:systemd-journald.service(8) man:journald.conf(5)
  12. DefaultDependencies=no
  13. Requires=systemd-journald.socket
  14. After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
  15. Before=sysinit.target
  16. [Service]
  17. CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
  18. DeviceAllow=char-* rw
  19. ExecStart=/lib/systemd/systemd-journald
  20. FileDescriptorStoreMax=4224
  21. IPAddressDeny=any
  22. LockPersonality=yes
  23. MemoryDenyWriteExecute=yes
  24. NoNewPrivileges=yes
  25. OOMScoreAdjust=-250
  26. Restart=always
  27. RestartSec=0
  28. Nice=-1
  29. RestrictAddressFamilies=AF_UNIX AF_NETLINK
  30. RestrictNamespaces=yes
  31. RestrictRealtime=yes
  32. RestrictSUIDSGID=yes
  33. RuntimeDirectory=systemd/journal
  34. RuntimeDirectoryPreserve=yes
  35. Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
  36. StandardOutput=null
  37. SystemCallArchitectures=native
  38. SystemCallErrorNumber=EPERM
  39. SystemCallFilter=@system-service
  40. Type=notify
  41. # If there are many split up journal files we need a lot of fds to access them
  42. # all in parallel.
  43. LimitNOFILE=524288