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