2010-10-20 22:48:01 +07:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 05:20:58 +07: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 22:48:01 +07:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Syslog Socket
|
2012-05-21 20:12:18 +07:00
|
|
|
Documentation=man:systemd.special(7)
|
|
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/syslog
|
2010-10-20 22:48:01 +07:00
|
|
|
DefaultDependencies=no
|
2010-10-20 23:02:22 +07:00
|
|
|
Before=sockets.target syslog.target
|
2012-01-12 10:34:50 +07:00
|
|
|
Conflicts=shutdown.target
|
|
|
|
Before=shutdown.target
|
2010-10-20 22:48:01 +07:00
|
|
|
|
2011-03-18 11:17:02 +07:00
|
|
|
# Pull in syslog.target to tell people that /dev/log is now accessible
|
|
|
|
Wants=syslog.target
|
|
|
|
|
2010-10-20 22:48:01 +07:00
|
|
|
[Socket]
|
2012-01-06 02:24:16 +07:00
|
|
|
ListenDatagram=/run/systemd/journal/syslog
|
2010-10-20 22:48:01 +07:00
|
|
|
SocketMode=0666
|
2011-12-31 07:07:49 +07:00
|
|
|
PassCredentials=yes
|
2012-03-13 06:00:27 +07:00
|
|
|
PassSecurity=yes
|
2012-01-28 00:57:37 +07:00
|
|
|
ReceiveBuffer=8M
|
2010-10-20 22:48:01 +07:00
|
|
|
|
2012-01-06 09:11:17 +07: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
|