]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-journal-upload.service.in
journal-upload: add state file directory to ReadWritePaths (#5578)
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
1 # This file is part of systemd.
2 #
3 # systemd is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2.1 of the License, or
6 # (at your option) any later version.
7
8 [Unit]
9 Description=Journal Remote Upload Service
10 Documentation=man:systemd-journal-upload(8)
11 Wants=network-online.target
12 After=network-online.target
13
14 [Service]
15 ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
16 User=systemd-journal-upload
17 SupplementaryGroups=systemd-journal
18 WatchdogSec=3min
19 PrivateTmp=yes
20 PrivateDevices=yes
21 ProtectSystem=strict
22 ProtectHome=yes
23 ProtectControlGroups=yes
24 ProtectKernelTunables=yes
25 ProtectKernelModules=yes
26 MemoryDenyWriteExecute=yes
27 RestrictRealtime=yes
28 RestrictNamespaces=yes
29 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
30 SystemCallArchitectures=native
31 ReadWritePaths=/var/lib/systemd/journal-upload
32
33 # If there are many split up journal files we need a lot of fds to
34 # access them all and combine
35 LimitNOFILE=16384
36
37 [Install]
38 WantedBy=multi-user.target