]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-journal-remote.service.in
units: switch on ProtectSystem=strict for our long running services
[thirdparty/systemd.git] / units / systemd-journal-remote.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 Sink Service
c9d49328 10Documentation=man:systemd-journal-remote(8) man:journal-remote.conf(5)
ad95fd1d
ZJS
11Requires=systemd-journal-remote.socket
12
13[Service]
0c28d51a 14ExecStart=@rootlibexecdir@/systemd-journal-remote --listen-https=-3 --output=/var/log/journal/remote/
ad95fd1d
ZJS
15User=systemd-journal-remote
16Group=systemd-journal-remote
0c28d51a 17WatchdogSec=3min
ad95fd1d
ZJS
18PrivateTmp=yes
19PrivateDevices=yes
20PrivateNetwork=yes
c7fb922d 21ProtectSystem=strict
0c28d51a
LP
22ProtectHome=yes
23ProtectControlGroups=yes
24ProtectKernelTunables=yes
25MemoryDenyWriteExecute=yes
26RestrictRealtime=yes
3c19d0b4 27RestrictNamespaces=yes
0c28d51a 28RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
7f396e5f 29SystemCallArchitectures=native
c7fb922d 30ReadWritePaths=/var/log/journal/remote
ad95fd1d
ZJS
31
32[Install]
33Also=systemd-journal-remote.socket