2012-09-28 06:46:32 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Journal Gateway Service
|
2015-12-15 09:51:12 +08:00
|
|
|
Documentation=man:systemd-journal-gatewayd(8)
|
2012-09-28 06:46:32 +08:00
|
|
|
Requires=systemd-journal-gatewayd.socket
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-journal-gatewayd
|
2017-10-05 21:05:02 +08:00
|
|
|
User=systemd-journal-gateway
|
2013-03-06 02:15:31 +08:00
|
|
|
SupplementaryGroups=systemd-journal
|
2017-07-28 11:28:17 +08:00
|
|
|
DynamicUser=yes
|
2014-03-20 06:08:39 +08:00
|
|
|
PrivateDevices=yes
|
|
|
|
PrivateNetwork=yes
|
2014-06-05 00:07:55 +08:00
|
|
|
ProtectHome=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2017-02-09 18:09:50 +08:00
|
|
|
ProtectKernelModules=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
RestrictRealtime=yes
|
2017-02-09 17:28:23 +08:00
|
|
|
RestrictNamespaces=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2017-02-09 05:32:37 +08:00
|
|
|
SystemCallArchitectures=native
|
2017-09-15 01:45:40 +08:00
|
|
|
LockPersonality=yes
|
2012-09-28 06:46:32 +08:00
|
|
|
|
2015-01-08 10:17:50 +08:00
|
|
|
# If there are many split upjournal files we need a lot of fds to
|
|
|
|
# access them all and combine
|
|
|
|
LimitNOFILE=16384
|
|
|
|
|
2012-09-28 06:46:32 +08:00
|
|
|
[Install]
|
|
|
|
Also=systemd-journal-gatewayd.socket
|