udev: String substitutions can be done in ENV, too
[systemd_ALT.git] / units / syslog.socket
blobff76bc5a6f45657ee7717be04a66b99a10eb0680
1 #  SPDX-License-Identifier: LGPL-2.1-or-later
3 #  This file is part of systemd.
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU Lesser General Public License as published by
7 #  the Free Software Foundation; either version 2.1 of the License, or
8 #  (at your option) any later version.
10 [Unit]
11 Description=Syslog Socket
12 Documentation=man:systemd.special(7)
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/syslog
14 DefaultDependencies=no
15 Before=sockets.target
17 # Don't allow logging until the very end
18 Conflicts=shutdown.target
19 Before=shutdown.target
21 # Don't try to activate syslog.service if sysinit.target has failed.
22 Conflicts=emergency.service
23 Before=emergency.service
25 [Socket]
26 ListenDatagram=/run/systemd/journal/syslog
27 SocketMode=0666
28 PassCredentials=yes
29 PassSecurity=yes
30 ReceiveBuffer=8M
32 # The default syslog implementation should make syslog.service a
33 # symlink to itself, so that this socket activates the right actual
34 # syslog service.
36 # Examples:
38 # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
39 # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
41 # Best way to achieve that is by adding this to your unit file
42 # (i.e. to rsyslog.service or syslog-ng.service):
44 # [Install]
45 # Alias=syslog.service
47 # See https://www.freedesktop.org/wiki/Software/systemd/syslog for details.