]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
ad95fd1d ZJS |
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 Remote Sink Service | |
c9d49328 | 12 | Documentation=man:systemd-journal-remote(8) man:journal-remote.conf(5) |
ad95fd1d ZJS |
13 | Requires=systemd-journal-remote.socket |
14 | ||
15 | [Service] | |
0c28d51a | 16 | ExecStart=@rootlibexecdir@/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/ |
3ca9940c LP |
17 | LockPersonality=yes |
18 | LogsDirectory=journal/remote | |
19 | MemoryDenyWriteExecute=yes | |
20 | NoNewPrivileges=yes | |
ad95fd1d ZJS |
21 | PrivateDevices=yes |
22 | PrivateNetwork=yes | |
3ca9940c | 23 | PrivateTmp=yes |
cabc1c6d | 24 | ProtectClock=yes |
0c28d51a | 25 | ProtectControlGroups=yes |
3ca9940c | 26 | ProtectHome=yes |
99894b86 | 27 | ProtectHostname=yes |
b6c7278c | 28 | ProtectKernelModules=yes |
3ca9940c | 29 | ProtectKernelTunables=yes |
6168ae58 | 30 | ProtectKernelLogs=yes |
3ca9940c | 31 | ProtectSystem=strict |
0c28d51a | 32 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
3ca9940c LP |
33 | RestrictNamespaces=yes |
34 | RestrictRealtime=yes | |
62aa2924 | 35 | RestrictSUIDSGID=yes |
7f396e5f | 36 | SystemCallArchitectures=native |
3ca9940c | 37 | User=systemd-journal-remote |
21d0dd5a | 38 | @SERVICE_WATCHDOG@ |
ad95fd1d | 39 | |
c35ee02c LP |
40 | # If there are many split up journal files we need a lot of fds to access them |
41 | # all in parallel. | |
c02b6ee4 | 42 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
c35ee02c | 43 | |
ad95fd1d ZJS |
44 | [Install] |
45 | Also=systemd-journal-remote.socket |