]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-journald.service.in
final v236 update (#7649)
[thirdparty/systemd.git] / units / systemd-journald.service.in
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
10 [Unit]
11 Description=Journal Service
12 Documentation=man:systemd-journald.service(8) man:journald.conf(5)
13 DefaultDependencies=no
14 Requires=systemd-journald.socket
15 After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
16 Before=sysinit.target
17
18 [Service]
19 Type=notify
20 Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
21 ExecStart=@rootlibexecdir@/systemd-journald
22 Restart=always
23 RestartSec=0
24 StandardOutput=null
25 WatchdogSec=3min
26 FileDescriptorStoreMax=4224
27 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
28 MemoryDenyWriteExecute=yes
29 RestrictRealtime=yes
30 RestrictNamespaces=yes
31 RestrictAddressFamilies=AF_UNIX AF_NETLINK
32 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
33 SystemCallArchitectures=native
34 LockPersonality=yes
35 IPAddressDeny=any
36
37 # Increase the default a bit in order to allow many simultaneous
38 # services being run since we keep one fd open per service. Also, when
39 # flushing journal files to disk, we might need a lot of fds when many
40 # journal files are combined.
41 LimitNOFILE=16384