2011-12-30 20:50:37 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04:00
# 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
2011-12-30 20:50:37 +04:00
# (at your option) any later version.
[Unit]
Description = Journal Service
2012-06-01 19:26:28 +04:00
Documentation = man:systemd-journald.service(8) man:journald.conf(5)
2011-12-30 20:50:37 +04:00
DefaultDependencies = no
Requires = systemd-journald.socket
2014-11-03 22:58:24 +03:00
After = systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
2012-08-25 01:18:35 +04:00
Before = sysinit.target
2011-12-30 20:50:37 +04:00
[Service]
2014-11-04 22:28:08 +03:00
Type = notify
2014-11-03 22:58:24 +03:00
Sockets = systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
2011-12-30 20:50:37 +04:00
ExecStart = @rootlibexecdir@/systemd-journald
2012-06-28 14:13:52 +04:00
Restart = always
2012-07-18 04:31:52 +04:00
RestartSec = 0
2011-12-30 20:50:37 +04:00
StandardOutput = null
2015-11-03 14:28:19 +03:00
WatchdogSec = 3min
2017-07-17 11:04:37 +03:00
FileDescriptorStoreMax = 4224
2016-08-26 14:23:27 +03:00
CapabilityBoundingSet = CAP_SYS_ADMIN CAP_DAC_OVERRIDE CAP_SYS_PTRACE CAP_SYSLOG CAP_AUDIT_CONTROL CAP_AUDIT_READ CAP_CHOWN CAP_DAC_READ_SEARCH CAP_FOWNER CAP_SETUID CAP_SETGID CAP_MAC_OVERRIDE
2016-06-08 15:23:37 +03:00
MemoryDenyWriteExecute = yes
2016-08-26 14:23:27 +03:00
RestrictRealtime = yes
2017-02-09 12:28:23 +03:00
RestrictNamespaces = yes
2016-08-26 14:23:27 +03:00
RestrictAddressFamilies = AF_UNIX AF_NETLINK
2017-02-09 13:22:08 +03:00
SystemCallFilter = ~@clock @cpu-emulation @debug @keyring @module @mount @obsolete @raw-io @reboot @swap
2017-02-09 00:32:37 +03:00
SystemCallArchitectures = native
2011-12-30 20:50:37 +04:00
# Increase the default a bit in order to allow many simultaneous
2015-01-08 05:17:50 +03:00
# services being run since we keep one fd open per service. Also, when
# flushing journal files to disk, we might need a lot of fds when many
# journal files are combined.
2011-12-30 20:50:37 +04:00
LimitNOFILE = 16384