]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
a7df2d1e | 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 Upload Service | |
c9d49328 | 12 | Documentation=man:systemd-journal-upload(8) |
3f2a3726 YW |
13 | Wants=network-online.target |
14 | After=network-online.target | |
ad95fd1d ZJS |
15 | |
16 | [Service] | |
941afc4b | 17 | DynamicUser=yes |
3ca9940c LP |
18 | ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state |
19 | LockPersonality=yes | |
20 | MemoryDenyWriteExecute=yes | |
ad95fd1d | 21 | PrivateDevices=yes |
24da96a1 | 22 | ProtectProc=invisible |
0c28d51a | 23 | ProtectControlGroups=yes |
3ca9940c | 24 | ProtectHome=yes |
99894b86 | 25 | ProtectHostname=yes |
24da96a1 | 26 | ProtectKernelLogs=yes |
b6c7278c | 27 | ProtectKernelModules=yes |
3ca9940c | 28 | ProtectKernelTunables=yes |
0c28d51a | 29 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
3ca9940c LP |
30 | RestrictNamespaces=yes |
31 | RestrictRealtime=yes | |
d0e62ae0 | 32 | StateDirectory=systemd/journal-upload |
3ca9940c LP |
33 | SupplementaryGroups=systemd-journal |
34 | SystemCallArchitectures=native | |
35 | User=systemd-journal-upload | |
21d0dd5a | 36 | @SERVICE_WATCHDOG@ |
ad95fd1d | 37 | |
c35ee02c LP |
38 | # If there are many split up journal files we need a lot of fds to access them |
39 | # all in parallel. | |
c02b6ee4 | 40 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
de45d726 | 41 | |
ad95fd1d ZJS |
42 | [Install] |
43 | WantedBy=multi-user.target |