]>
Commit | Line | Data |
---|---|---|
a7df2d1e ZJS |
1 | # SPDX-License-Identifier: LGPL-2.1+ |
2 | # | |
7b17a7d7 LP |
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 Gateway Service | |
c9d49328 | 12 | Documentation=man:systemd-journal-gatewayd(8) |
7b17a7d7 LP |
13 | Requires=systemd-journal-gatewayd.socket |
14 | ||
15 | [Service] | |
b7f2d0ba | 16 | DynamicUser=yes |
3ca9940c LP |
17 | ExecStart=@rootlibexecdir@/systemd-journal-gatewayd |
18 | LockPersonality=yes | |
19 | MemoryDenyWriteExecute=yes | |
f21a71a9 LP |
20 | PrivateDevices=yes |
21 | PrivateNetwork=yes | |
0c28d51a | 22 | ProtectControlGroups=yes |
3ca9940c | 23 | ProtectHome=yes |
99894b86 | 24 | ProtectHostname=yes |
b6c7278c | 25 | ProtectKernelModules=yes |
3ca9940c | 26 | ProtectKernelTunables=yes |
6168ae58 | 27 | ProtectKernelLogs=yes |
0c28d51a | 28 | RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 |
3ca9940c LP |
29 | RestrictNamespaces=yes |
30 | RestrictRealtime=yes | |
31 | SupplementaryGroups=systemd-journal | |
7f396e5f | 32 | SystemCallArchitectures=native |
3ca9940c | 33 | User=systemd-journal-gateway |
7b17a7d7 | 34 | |
c35ee02c LP |
35 | # If there are many split up journal files we need a lot of fds to access them |
36 | # all in parallel. | |
c02b6ee4 | 37 | LimitNOFILE=@HIGH_RLIMIT_NOFILE@ |
de45d726 | 38 | |
7b17a7d7 LP |
39 | [Install] |
40 | Also=systemd-journal-gatewayd.socket |