2014-03-31 03:08:02 +00: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 Remote Upload Service
|
2015-12-15 01:51:12 +00:00
|
|
|
Documentation=man:systemd-journal-upload(8)
|
2016-10-12 09:13:13 +00:00
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
2014-03-31 03:08:02 +00:00
|
|
|
|
|
|
|
[Service]
|
2016-08-26 11:23:27 +00:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-journal-upload --save-state
|
2014-03-31 03:08:02 +00:00
|
|
|
User=systemd-journal-upload
|
2017-10-06 07:06:21 +00:00
|
|
|
DynamicUser=yes
|
2016-01-15 06:25:36 +00:00
|
|
|
SupplementaryGroups=systemd-journal
|
2016-08-26 11:23:27 +00:00
|
|
|
WatchdogSec=3min
|
2014-03-31 03:08:02 +00:00
|
|
|
PrivateDevices=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
ProtectHome=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
2017-02-09 10:09:50 +00:00
|
|
|
ProtectKernelModules=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
RestrictRealtime=yes
|
2017-02-09 09:28:23 +00:00
|
|
|
RestrictNamespaces=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2017-09-14 17:45:40 +00:00
|
|
|
LockPersonality=yes
|
2017-08-02 08:35:11 +00:00
|
|
|
StateDirectory=systemd/journal-upload
|
2014-03-31 03:08:02 +00:00
|
|
|
|
2015-01-08 02:17:50 +00:00
|
|
|
# If there are many split up journal files we need a lot of fds to
|
|
|
|
# access them all and combine
|
|
|
|
LimitNOFILE=16384
|
|
|
|
|
2014-03-31 03:08:02 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|