]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-journal-upload.service.in
Add SPDX license headers to python scripts
[thirdparty/systemd.git] / units / systemd-journal-upload.service.in
CommitLineData
ad95fd1d
ZJS
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]
9Description=Journal Remote Upload Service
c9d49328 10Documentation=man:systemd-journal-upload(8)
3f2a3726
YW
11Wants=network-online.target
12After=network-online.target
ad95fd1d
ZJS
13
14[Service]
0c28d51a 15ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
ad95fd1d 16User=systemd-journal-upload
941afc4b 17DynamicUser=yes
d70698b7 18SupplementaryGroups=systemd-journal
0c28d51a 19WatchdogSec=3min
ad95fd1d 20PrivateDevices=yes
0c28d51a
LP
21ProtectHome=yes
22ProtectControlGroups=yes
23ProtectKernelTunables=yes
b6c7278c 24ProtectKernelModules=yes
0c28d51a
LP
25MemoryDenyWriteExecute=yes
26RestrictRealtime=yes
3c19d0b4 27RestrictNamespaces=yes
0c28d51a 28RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
7f396e5f 29SystemCallArchitectures=native
bff8f254 30LockPersonality=yes
d0e62ae0 31StateDirectory=systemd/journal-upload
ad95fd1d 32
de45d726
LP
33# If there are many split up journal files we need a lot of fds to
34# access them all and combine
35LimitNOFILE=16384
36
ad95fd1d
ZJS
37[Install]
38WantedBy=multi-user.target