]>
Commit | Line | Data |
---|---|---|
a032b68d | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
52ad194e | 2 | # |
663996b3 MS |
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] | |
5eef597e | 11 | Description=Journal Remote Upload Service |
4c89c718 | 12 | Documentation=man:systemd-journal-upload(8) |
8a584da2 MP |
13 | Wants=network-online.target |
14 | After=network-online.target | |
663996b3 MS |
15 | |
16 | [Service] | |
52ad194e | 17 | DynamicUser=yes |
8b3d4ff0 | 18 | ExecStart={{ROOTLIBEXECDIR}}/systemd-journal-upload --save-state |
6e866b33 MB |
19 | LockPersonality=yes |
20 | MemoryDenyWriteExecute=yes | |
5eef597e | 21 | PrivateDevices=yes |
a032b68d | 22 | ProtectProc=invisible |
8a584da2 | 23 | ProtectControlGroups=yes |
6e866b33 | 24 | ProtectHome=yes |
bb4f798a | 25 | ProtectHostname=yes |
a032b68d | 26 | ProtectKernelLogs=yes |
81c58355 | 27 | ProtectKernelModules=yes |
6e866b33 | 28 | ProtectKernelTunables=yes |
8a584da2 | 29 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
6e866b33 MB |
30 | RestrictNamespaces=yes |
31 | RestrictRealtime=yes | |
f5e65279 | 32 | StateDirectory=systemd/journal-upload |
6e866b33 MB |
33 | SupplementaryGroups=systemd-journal |
34 | SystemCallArchitectures=native | |
35 | User=systemd-journal-upload | |
8b3d4ff0 | 36 | {{SERVICE_WATCHDOG}} |
663996b3 | 37 | |
6e866b33 MB |
38 | # If there are many split up journal files we need a lot of fds to access them |
39 | # all in parallel. | |
8b3d4ff0 | 40 | LimitNOFILE={{HIGH_RLIMIT_NOFILE}} |
e735f4d4 | 41 | |
663996b3 | 42 | [Install] |
5eef597e | 43 | WantedBy=multi-user.target |