]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
4b2d99d9 LP |
3 | # This file is part of systemd. |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
4b2d99d9 LP |
8 | # (at your option) any later version. |
9 | ||
4b2d99d9 LP |
10 | [Unit] |
11 | Description=Journal Service | |
63cb20a2 | 12 | Documentation=man:systemd-journald.service(8) man:journald.conf(5) |
4b2d99d9 LP |
13 | DefaultDependencies=no |
14 | Requires=systemd-journald.socket | |
875c2e22 | 15 | After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket |
7e75c5ac | 16 | Before=sysinit.target |
4b2d99d9 LP |
17 | |
18 | [Service] | |
3ca9940c | 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 |
9af28206 | 20 | DeviceAllow=char-* rw |
4b2d99d9 | 21 | ExecStart=@rootlibexecdir@/systemd-journald |
3c978aca | 22 | FileDescriptorStoreMax=4224 |
3ca9940c LP |
23 | IPAddressDeny=any |
24 | LockPersonality=yes | |
40652ca4 | 25 | MemoryDenyWriteExecute=yes |
3ca9940c | 26 | NoNewPrivileges=yes |
5591cd4e | 27 | OOMScoreAdjust=-250 |
cabc1c6d | 28 | ProtectClock=yes |
3ca9940c LP |
29 | Restart=always |
30 | RestartSec=0 | |
0c28d51a | 31 | RestrictAddressFamilies=AF_UNIX AF_NETLINK |
3ca9940c LP |
32 | RestrictNamespaces=yes |
33 | RestrictRealtime=yes | |
62aa2924 | 34 | RestrictSUIDSGID=yes |
340cb115 LP |
35 | RuntimeDirectory=systemd/journal |
36 | RuntimeDirectoryPreserve=yes | |
3ca9940c LP |
37 | Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket |
38 | StandardOutput=null | |
7f396e5f | 39 | SystemCallArchitectures=native |
3ca9940c LP |
40 | SystemCallErrorNumber=EPERM |
41 | SystemCallFilter=@system-service | |
42 | Type=notify | |
21d0dd5a | 43 | @SERVICE_WATCHDOG@ |
4b2d99d9 | 44 | |
c35ee02c LP |
45 | # If there are many split up journal files we need a lot of fds to access them |
46 | # all in parallel. | |
c02b6ee4 | 47 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |