2017-11-18 17:35:03 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2012-09-28 00:46:32 +02:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Journal Gateway Service
|
2015-12-15 02:51:12 +01:00
|
|
|
Documentation=man:systemd-journal-gatewayd(8)
|
2012-09-28 00:46:32 +02:00
|
|
|
Requires=systemd-journal-gatewayd.socket
|
|
|
|
|
|
|
|
[Service]
|
2017-07-28 05:28:17 +02:00
|
|
|
DynamicUser=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
2014-03-19 23:08:39 +01:00
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateNetwork=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectHome=yes
|
2019-02-18 23:30:12 +01:00
|
|
|
ProtectHostname=yes
|
2017-02-09 11:09:50 +01:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 17:19:48 +01:00
|
|
|
ProtectKernelTunables=yes
|
2019-11-14 01:56:23 +01:00
|
|
|
ProtectKernelLogs=yes
|
2016-08-26 13:23:27 +02:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2018-11-12 17:19:48 +01:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
SupplementaryGroups=systemd-journal
|
2017-02-08 22:32:37 +01:00
|
|
|
SystemCallArchitectures=native
|
2018-11-12 17:19:48 +01:00
|
|
|
User=systemd-journal-gateway
|
2012-09-28 00:46:32 +02:00
|
|
|
|
2018-10-01 18:08:27 +02:00
|
|
|
# If there are many split up journal files we need a lot of fds to access them
|
|
|
|
# all in parallel.
|
2018-10-17 10:21:48 +02:00
|
|
|
LimitNOFILE=@HIGH_RLIMIT_NOFILE@
|
2015-01-08 03:17:50 +01:00
|
|
|
|
2012-09-28 00:46:32 +02:00
|
|
|
[Install]
|
|
|
|
Also=systemd-journal-gatewayd.socket
|