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)
|
|
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/syslog
|
2010-10-20 23:48:01 +08:00
|
|
|
DefaultDependencies=no
|
2013-01-17 04:09:03 +08:00
|
|
|
Before=sockets.target shutdown.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
|
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
|
|
|
#
|
|
|
|
# See http://www.freedesktop.org/wiki/Software/systemd/syslog for details.
|