]>
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 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 | |
21 | NoNewPrivileges=yes | |
ad95fd1d | 22 | PrivateDevices=yes |
0c28d51a | 23 | ProtectControlGroups=yes |
3ca9940c | 24 | ProtectHome=yes |
b6c7278c | 25 | ProtectKernelModules=yes |
3ca9940c | 26 | ProtectKernelTunables=yes |
0c28d51a | 27 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
3ca9940c LP |
28 | RestrictNamespaces=yes |
29 | RestrictRealtime=yes | |
d0e62ae0 | 30 | StateDirectory=systemd/journal-upload |
3ca9940c LP |
31 | SupplementaryGroups=systemd-journal |
32 | SystemCallArchitectures=native | |
33 | User=systemd-journal-upload | |
34 | WatchdogSec=3min | |
ad95fd1d | 35 | |
c35ee02c LP |
36 | # If there are many split up journal files we need a lot of fds to access them |
37 | # all in parallel. | |
c02b6ee4 | 38 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
de45d726 | 39 | |
ad95fd1d ZJS |
40 | [Install] |
41 | WantedBy=multi-user.target |