]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-journald.service.in
Merge pull request #14699 from yuwata/dhcp6-fix-t1-t2
[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 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
20 DeviceAllow=char-* rw
21 ExecStart=@rootlibexecdir@/systemd-journald
22 FileDescriptorStoreMax=4224
23 IPAddressDeny=any
24 LockPersonality=yes
25 MemoryDenyWriteExecute=yes
26 NoNewPrivileges=yes
27 OOMScoreAdjust=-250
28 Restart=always
29 RestartSec=0
30 RestrictAddressFamilies=AF_UNIX AF_NETLINK
31 RestrictNamespaces=yes
32 RestrictRealtime=yes
33 RestrictSUIDSGID=yes
34 RuntimeDirectory=systemd/journal
35 RuntimeDirectoryPreserve=yes
36 Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
37 StandardOutput=null
38 SystemCallArchitectures=native
39 SystemCallErrorNumber=EPERM
40 SystemCallFilter=@system-service
41 Type=notify
42 @SERVICE_WATCHDOG@
43
44 # If there are many split up journal files we need a lot of fds to access them
45 # all in parallel.
46 LimitNOFILE=@HIGH_RLIMIT_NOFILE@