2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2010-10-20 23:48:01 +08:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 06:20:58 +08: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 23:48:01 +08:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Syslog Socket
|
2012-05-21 21:12:18 +08:00
|
|
|
Documentation=man:systemd.special(7)
|
2024-05-28 20:37:23 +08:00
|
|
|
Documentation=https://systemd.io/SYSLOG
|
2010-10-20 23:48:01 +08:00
|
|
|
DefaultDependencies=no
|
2017-09-30 00:20:31 +08:00
|
|
|
Before=sockets.target
|
2012-07-03 19:31:09 +08:00
|
|
|
|
|
|
|
# Don't allow logging until the very end
|
2012-01-12 11:34:50 +08:00
|
|
|
Conflicts=shutdown.target
|
2017-09-30 00:20:31 +08:00
|
|
|
Before=shutdown.target
|
|
|
|
|
|
|
|
# Don't try to activate syslog.service if sysinit.target has failed.
|
|
|
|
Conflicts=emergency.service
|
2017-09-25 18:45:03 +08:00
|
|
|
Before=emergency.service
|
2010-10-20 23:48:01 +08:00
|
|
|
|
|
|
|
[Socket]
|
2012-01-06 03:24:16 +08:00
|
|
|
ListenDatagram=/run/systemd/journal/syslog
|
2010-10-20 23:48:01 +08:00
|
|
|
SocketMode=0666
|
2011-12-31 08:07:49 +08:00
|
|
|
PassCredentials=yes
|
2012-03-13 07:00:27 +08:00
|
|
|
PassSecurity=yes
|
2012-01-28 01:57:37 +08:00
|
|
|
ReceiveBuffer=8M
|
2010-10-20 23:48:01 +08:00
|
|
|
|
2012-01-06 10:11:17 +08: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 19:31:09 +08:00
|
|
|
#
|
2024-05-28 20:37:23 +08:00
|
|
|
# See https://systemd.io/SYSLOG for details.
|