]>
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] | |
0c28d51a | 17 | ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state |
ad95fd1d | 18 | User=systemd-journal-upload |
941afc4b | 19 | DynamicUser=yes |
d70698b7 | 20 | SupplementaryGroups=systemd-journal |
0c28d51a | 21 | WatchdogSec=3min |
ad95fd1d | 22 | PrivateDevices=yes |
0c28d51a LP |
23 | ProtectHome=yes |
24 | ProtectControlGroups=yes | |
25 | ProtectKernelTunables=yes | |
b6c7278c | 26 | ProtectKernelModules=yes |
0c28d51a LP |
27 | MemoryDenyWriteExecute=yes |
28 | RestrictRealtime=yes | |
3c19d0b4 | 29 | RestrictNamespaces=yes |
0c28d51a | 30 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
7f396e5f | 31 | SystemCallArchitectures=native |
bff8f254 | 32 | LockPersonality=yes |
d0e62ae0 | 33 | StateDirectory=systemd/journal-upload |
ad95fd1d | 34 | |
de45d726 LP |
35 | # If there are many split up journal files we need a lot of fds to |
36 | # access them all and combine | |
37 | LimitNOFILE=16384 | |
38 | ||
ad95fd1d ZJS |
39 | [Install] |
40 | WantedBy=multi-user.target |