]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-journal-remote.service.in
man: add a new directives section for .nspawn
[thirdparty/systemd.git] / units / systemd-journal-remote.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 Sink Service
c9d49328 12Documentation=man:systemd-journal-remote(8) man:journal-remote.conf(5)
ad95fd1d
ZJS
13Requires=systemd-journal-remote.socket
14
15[Service]
0c28d51a 16ExecStart=@rootlibexecdir@/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/
3ca9940c
LP
17LockPersonality=yes
18LogsDirectory=journal/remote
19MemoryDenyWriteExecute=yes
20NoNewPrivileges=yes
ad95fd1d
ZJS
21PrivateDevices=yes
22PrivateNetwork=yes
3ca9940c 23PrivateTmp=yes
0c28d51a 24ProtectControlGroups=yes
3ca9940c 25ProtectHome=yes
b6c7278c 26ProtectKernelModules=yes
3ca9940c
LP
27ProtectKernelTunables=yes
28ProtectSystem=strict
0c28d51a 29RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
3ca9940c
LP
30RestrictNamespaces=yes
31RestrictRealtime=yes
7f396e5f 32SystemCallArchitectures=native
3ca9940c
LP
33User=systemd-journal-remote
34WatchdogSec=3min
ad95fd1d 35
c35ee02c
LP
36# If there are many split up journal files we need a lot of fds to access them
37# all in parallel.
c02b6ee4 38LimitNOFILE=@HIGH_RLIMIT_NOFILE@
c35ee02c 39
ad95fd1d
ZJS
40[Install]
41Also=systemd-journal-remote.socket