2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2010-10-20 19:48:01 +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
2010-10-20 19:48:01 +04:00
# (at your option) any later version.
[Unit]
Description = Syslog Socket
2012-05-21 17:12:18 +04:00
Documentation = man:systemd.special(7)
2017-06-29 05:54:12 +03:00
Documentation = https://www.freedesktop.org/wiki/Software/systemd/syslog
2010-10-20 19:48:01 +04:00
DefaultDependencies = no
2017-09-29 19:20:31 +03:00
Before = sockets.target
2012-07-03 15:31:09 +04:00
# Don't allow logging until the very end
2012-01-12 07:34:50 +04:00
Conflicts = shutdown.target
2017-09-29 19:20:31 +03:00
Before = shutdown.target
# Don't try to activate syslog.service if sysinit.target has failed.
Conflicts = emergency.service
2017-09-25 13:45:03 +03:00
Before = emergency.service
2010-10-20 19:48:01 +04:00
[Socket]
2012-01-05 23:24:16 +04:00
ListenDatagram = /run/systemd/journal/syslog
2010-10-20 19:48:01 +04:00
SocketMode = 0666
2011-12-31 04:07:49 +04:00
PassCredentials = yes
2012-03-13 03:00:27 +04:00
PassSecurity = yes
2012-01-27 21:57:37 +04:00
ReceiveBuffer = 8M
2010-10-20 19:48:01 +04:00
2012-01-06 06:11:17 +04:00
# The default syslog implementation should make syslog.service a
# symlink to itself, so that this socket activates the right actual
# syslog service.
#
# Examples:
#
# /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
# /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
#
# Best way to achieve that is by adding this to your unit file
# (i.e. to rsyslog.service or syslog-ng.service):
#
# [Install]
# Alias=syslog.service
2012-07-03 15:31:09 +04:00
#
2017-06-29 05:54:12 +03:00
# See https://www.freedesktop.org/wiki/Software/systemd/syslog for details.