]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-journal-upload.service.in
meson: stop creating enablement symlinks in /etc during installation
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
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]
11 Description=Journal Remote Upload Service
12 Documentation=man:systemd-journal-upload(8)
13 Wants=network-online.target
14 After=network-online.target
15
16 [Service]
17 DynamicUser=yes
18 ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
19 LockPersonality=yes
20 MemoryDenyWriteExecute=yes
21 NoNewPrivileges=yes
22 PrivateDevices=yes
23 ProtectControlGroups=yes
24 ProtectHome=yes
25 ProtectHostname=yes
26 ProtectKernelModules=yes
27 ProtectKernelTunables=yes
28 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
29 RestrictNamespaces=yes
30 RestrictRealtime=yes
31 StateDirectory=systemd/journal-upload
32 SupplementaryGroups=systemd-journal
33 SystemCallArchitectures=native
34 User=systemd-journal-upload
35 WatchdogSec=3min
36
37 # If there are many split up journal files we need a lot of fds to access them
38 # all in parallel.
39 LimitNOFILE=@HIGH_RLIMIT_NOFILE@
40
41 [Install]
42 WantedBy=multi-user.target