2020-11-09 13:23:58 +09:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 17:35:03 +01:00
#
2014-03-30 23:08:02 -04: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 Upload Service
2015-12-15 10:51:12 +09:00
Documentation = man:systemd-journal-upload(8)
2016-10-12 18:13:13 +09:00
Wants = network-online.target
After = network-online.target
2014-03-30 23:08:02 -04:00
[Service]
2017-10-06 16:06:21 +09:00
DynamicUser = yes
2021-05-16 11:55:36 +02:00
ExecStart = {{ROOTLIBEXECDIR}}/systemd-journal-upload --save-state
2018-11-12 17:19:48 +01:00
LockPersonality = yes
MemoryDenyWriteExecute = yes
2014-03-30 23:08:02 -04:00
PrivateDevices = yes
2020-08-06 14:50:38 +02:00
ProtectProc = invisible
2016-08-26 13:23:27 +02:00
ProtectControlGroups = yes
2018-11-12 17:19:48 +01:00
ProtectHome = yes
2019-02-19 00:30:12 +02:00
ProtectHostname = yes
2020-08-06 14:50:38 +02:00
ProtectKernelLogs = yes
2017-02-09 11:09:50 +01:00
ProtectKernelModules = yes
2018-11-12 17:19:48 +01:00
ProtectKernelTunables = 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
2017-08-02 17:35:11 +09:00
StateDirectory = systemd/journal-upload
2018-11-12 17:19:48 +01:00
SupplementaryGroups = systemd-journal
SystemCallArchitectures = native
User = systemd-journal-upload
2021-05-16 11:55:36 +02:00
{ { S E R V I C E _ W A T C H D O G } }
2014-03-30 23:08:02 -04: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.
2021-05-16 11:55:36 +02:00
LimitNOFILE = {{HIGH_RLIMIT_NOFILE}}
2015-01-08 03:17:50 +01:00
2014-03-30 23:08:02 -04:00
[Install]
WantedBy = multi-user.target