systemd-journald@.service 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 for Namespace %i
  11. Documentation=man:systemd-journald.service(8) man:journald.conf(5)
  12. Requires=systemd-journald@%i.socket systemd-journald-varlink@%i.socket
  13. After=systemd-journald@%i.socket systemd-journald-varlink@%i.socket
  14. [Service]
  15. CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
  16. DevicePolicy=closed
  17. ExecStart=/lib/systemd/systemd-journald %i
  18. FileDescriptorStoreMax=4224
  19. Group=systemd-journal
  20. IPAddressDeny=any
  21. LockPersonality=yes
  22. LogsDirectory=journal/%m.%i
  23. LogsDirectoryMode=02755
  24. MemoryDenyWriteExecute=yes
  25. NoNewPrivileges=yes
  26. RestrictAddressFamilies=AF_UNIX AF_NETLINK
  27. RestrictNamespaces=yes
  28. RestrictRealtime=yes
  29. RestrictSUIDSGID=yes
  30. RuntimeDirectory=systemd/journal.%i
  31. RuntimeDirectoryPreserve=yes
  32. Sockets=systemd-journald@%i.socket
  33. StandardOutput=null
  34. SystemCallArchitectures=native
  35. SystemCallErrorNumber=EPERM
  36. SystemCallFilter=@system-service
  37. Type=notify
  38. WatchdogSec=3min
  39. # If there are many split up journal files we need a lot of fds to access them
  40. # all in parallel.
  41. LimitNOFILE=524288