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