]>
Commit | Line | Data |
---|---|---|
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 Remote Sink Service | |
12 | Documentation=man:systemd-journal-remote(8) man:journal-remote.conf(5) | |
13 | Requires=systemd-journal-remote.socket | |
14 | ||
15 | [Service] | |
16 | ExecStart=@rootlibexecdir@/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/ | |
17 | LockPersonality=yes | |
18 | LogsDirectory=journal/remote | |
19 | MemoryDenyWriteExecute=yes | |
20 | NoNewPrivileges=yes | |
21 | PrivateDevices=yes | |
22 | PrivateNetwork=yes | |
23 | PrivateTmp=yes | |
24 | ProtectControlGroups=yes | |
25 | ProtectHome=yes | |
26 | ProtectHostname=yes | |
27 | ProtectKernelModules=yes | |
28 | ProtectKernelTunables=yes | |
29 | ProtectSystem=strict | |
30 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 | |
31 | RestrictNamespaces=yes | |
32 | RestrictRealtime=yes | |
33 | SystemCallArchitectures=native | |
34 | User=systemd-journal-remote | |
35 | WatchdogSec=3min | |
36 | ||
37 | # If there are many split up journal files we need a lot of fds to access them | |
38 | # all in parallel. | |
39 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ | |
40 | ||
41 | [Install] | |
42 | Also=systemd-journal-remote.socket |