]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-journal-upload.service.in
man: substitute path to rc.local in the man page
[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]
941afc4b 17DynamicUser=yes
3ca9940c
LP
18ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
19LockPersonality=yes
20MemoryDenyWriteExecute=yes
ad95fd1d 21PrivateDevices=yes
24da96a1 22ProtectProc=invisible
0c28d51a 23ProtectControlGroups=yes
3ca9940c 24ProtectHome=yes
99894b86 25ProtectHostname=yes
24da96a1 26ProtectKernelLogs=yes
b6c7278c 27ProtectKernelModules=yes
3ca9940c 28ProtectKernelTunables=yes
0c28d51a 29RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
3ca9940c
LP
30RestrictNamespaces=yes
31RestrictRealtime=yes
d0e62ae0 32StateDirectory=systemd/journal-upload
3ca9940c
LP
33SupplementaryGroups=systemd-journal
34SystemCallArchitectures=native
35User=systemd-journal-upload
21d0dd5a 36@SERVICE_WATCHDOG@
ad95fd1d 37
c35ee02c
LP
38# If there are many split up journal files we need a lot of fds to access them
39# all in parallel.
c02b6ee4 40LimitNOFILE=@HIGH_RLIMIT_NOFILE@
de45d726 41
ad95fd1d
ZJS
42[Install]
43WantedBy=multi-user.target