]> git.proxmox.com Git - systemd.git/blame - units/systemd-journal-upload.service.in
New upstream version 249~rc1
[systemd.git] / units / systemd-journal-upload.service.in
CommitLineData
a032b68d 1# SPDX-License-Identifier: LGPL-2.1-or-later
52ad194e 2#
663996b3
MS
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]
5eef597e 11Description=Journal Remote Upload Service
4c89c718 12Documentation=man:systemd-journal-upload(8)
8a584da2
MP
13Wants=network-online.target
14After=network-online.target
663996b3
MS
15
16[Service]
52ad194e 17DynamicUser=yes
8b3d4ff0 18ExecStart={{ROOTLIBEXECDIR}}/systemd-journal-upload --save-state
6e866b33
MB
19LockPersonality=yes
20MemoryDenyWriteExecute=yes
5eef597e 21PrivateDevices=yes
a032b68d 22ProtectProc=invisible
8a584da2 23ProtectControlGroups=yes
6e866b33 24ProtectHome=yes
bb4f798a 25ProtectHostname=yes
a032b68d 26ProtectKernelLogs=yes
81c58355 27ProtectKernelModules=yes
6e866b33 28ProtectKernelTunables=yes
8a584da2 29RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
6e866b33
MB
30RestrictNamespaces=yes
31RestrictRealtime=yes
f5e65279 32StateDirectory=systemd/journal-upload
6e866b33
MB
33SupplementaryGroups=systemd-journal
34SystemCallArchitectures=native
35User=systemd-journal-upload
8b3d4ff0 36{{SERVICE_WATCHDOG}}
663996b3 37
6e866b33
MB
38# If there are many split up journal files we need a lot of fds to access them
39# all in parallel.
8b3d4ff0 40LimitNOFILE={{HIGH_RLIMIT_NOFILE}}
e735f4d4 41
663996b3 42[Install]
5eef597e 43WantedBy=multi-user.target