2017-11-18 16:35:03 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
2014-03-31 03:08:02 +00: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 Remote Sink Service
|
2015-12-15 01:51:12 +00:00
|
|
|
Documentation=man:systemd-journal-remote(8) man:journal-remote.conf(5)
|
2014-03-31 03:08:02 +00:00
|
|
|
Requires=systemd-journal-remote.socket
|
|
|
|
|
|
|
|
[Service]
|
2016-08-26 11:23:27 +00:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/
|
2018-11-12 16:19:48 +00:00
|
|
|
LockPersonality=yes
|
|
|
|
LogsDirectory=journal/remote
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
2014-03-31 03:08:02 +00:00
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateNetwork=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
PrivateTmp=yes
|
2020-04-02 18:18:11 +00:00
|
|
|
ProtectClock=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
ProtectControlGroups=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectHome=yes
|
2019-02-18 22:30:12 +00:00
|
|
|
ProtectHostname=yes
|
2017-02-09 10:09:50 +00:00
|
|
|
ProtectKernelModules=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectKernelTunables=yes
|
2019-11-14 00:56:23 +00:00
|
|
|
ProtectKernelLogs=yes
|
2018-11-12 16:19:48 +00:00
|
|
|
ProtectSystem=strict
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2018-11-12 16:19:48 +00:00
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
2019-03-20 18:52:20 +00:00
|
|
|
RestrictSUIDSGID=yes
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2018-11-12 16:19:48 +00:00
|
|
|
User=systemd-journal-remote
|
2019-10-25 10:17:24 +00:00
|
|
|
@SERVICE_WATCHDOG@
|
2014-03-31 03:08:02 +00:00
|
|
|
|
2018-10-01 16:08:27 +00:00
|
|
|
# If there are many split up journal files we need a lot of fds to access them
|
|
|
|
# all in parallel.
|
2018-10-17 08:21:48 +00:00
|
|
|
LimitNOFILE=@HIGH_RLIMIT_NOFILE@
|
2018-10-01 16:08:27 +00:00
|
|
|
|
2014-03-31 03:08:02 +00:00
|
|
|
[Install]
|
|
|
|
Also=systemd-journal-remote.socket
|