udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / units / systemd-journal-upload.service.in
blob7e64870e9d5d02d4fd727b6e97d5ed5d7da0302d
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
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.
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
16 [Service]
17 DynamicUser=yes
18 ExecStart={{ROOTLIBEXECDIR}}/systemd-journal-upload --save-state
19 LockPersonality=yes
20 MemoryDenyWriteExecute=yes
21 PrivateDevices=yes
22 ProtectProc=invisible
23 ProtectControlGroups=yes
24 ProtectHome=yes
25 ProtectHostname=yes
26 ProtectKernelLogs=yes
27 ProtectKernelModules=yes
28 ProtectKernelTunables=yes
29 Restart=on-failure
30 RestartSteps=10
31 RestartMaxDelaySec=60
32 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
33 RestrictNamespaces=yes
34 RestrictRealtime=yes
35 StateDirectory=systemd/journal-upload
36 SupplementaryGroups=systemd-journal
37 SystemCallArchitectures=native
38 User=systemd-journal-upload
39 {{SERVICE_WATCHDOG}}
41 # If there are many split up journal files we need a lot of fds to access them
42 # all in parallel.
43 LimitNOFILE={{HIGH_RLIMIT_NOFILE}}
45 [Install]
46 WantedBy=multi-user.target