]> git.ipfire.org Git - thirdparty/systemd.git/blame_incremental - units/systemd-journal-upload.service.in
Merge pull request #12188 from poettering/coccinelle-fixlets
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
... / ...
CommitLineData
1# SPDX-License-Identifier: LGPL-2.1+
2#
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 Remote Upload Service
12Documentation=man:systemd-journal-upload(8)
13Wants=network-online.target
14After=network-online.target
15
16[Service]
17DynamicUser=yes
18ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
19LockPersonality=yes
20MemoryDenyWriteExecute=yes
21PrivateDevices=yes
22ProtectControlGroups=yes
23ProtectHome=yes
24ProtectHostname=yes
25ProtectKernelModules=yes
26ProtectKernelTunables=yes
27RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
28RestrictNamespaces=yes
29RestrictRealtime=yes
30StateDirectory=systemd/journal-upload
31SupplementaryGroups=systemd-journal
32SystemCallArchitectures=native
33User=systemd-journal-upload
34WatchdogSec=3min
35
36# If there are many split up journal files we need a lot of fds to access them
37# all in parallel.
38LimitNOFILE=@HIGH_RLIMIT_NOFILE@
39
40[Install]
41WantedBy=multi-user.target