]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-journal-gatewayd.service.in
Merge pull request #12420 from mrc0mmand/coccinelle-tweaks
[thirdparty/systemd.git] / units / systemd-journal-gatewayd.service.in
CommitLineData
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]
11Description=Journal Gateway Service
c9d49328 12Documentation=man:systemd-journal-gatewayd(8)
7b17a7d7
LP
13Requires=systemd-journal-gatewayd.socket
14
15[Service]
b7f2d0ba 16DynamicUser=yes
3ca9940c
LP
17ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
18LockPersonality=yes
19MemoryDenyWriteExecute=yes
f21a71a9
LP
20PrivateDevices=yes
21PrivateNetwork=yes
0c28d51a 22ProtectControlGroups=yes
3ca9940c 23ProtectHome=yes
99894b86 24ProtectHostname=yes
b6c7278c 25ProtectKernelModules=yes
3ca9940c 26ProtectKernelTunables=yes
0c28d51a 27RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
3ca9940c
LP
28RestrictNamespaces=yes
29RestrictRealtime=yes
30SupplementaryGroups=systemd-journal
7f396e5f 31SystemCallArchitectures=native
3ca9940c 32User=systemd-journal-gateway
7b17a7d7 33
c35ee02c
LP
34# If there are many split up journal files we need a lot of fds to access them
35# all in parallel.
c02b6ee4 36LimitNOFILE=@HIGH_RLIMIT_NOFILE@
de45d726 37
7b17a7d7
LP
38[Install]
39Also=systemd-journal-gatewayd.socket