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