chiark / gitweb /
units: start vconsole-setup only if there's actually a virtual console device
[elogind.git] / units / syslog.socket
1 #  This file is part of systemd.
2 #
3 #  systemd is free software; you can redistribute it and/or modify it
4 #  under the terms of the GNU Lesser General Public License as published by
5 #  the Free Software Foundation; either version 2.1 of the License, or
6 #  (at your option) any later version.
7
8 # See systemd.special(7) for details
9
10 [Unit]
11 Description=Syslog Socket
12 DefaultDependencies=no
13 Before=sockets.target syslog.target
14 Conflicts=shutdown.target
15 Before=shutdown.target
16
17 # Pull in syslog.target to tell people that /dev/log is now accessible
18 Wants=syslog.target
19
20 [Socket]
21 ListenDatagram=/run/systemd/journal/syslog
22 SocketMode=0666
23 PassCredentials=yes
24 PassSecurity=yes
25 ReceiveBuffer=8M
26
27 # The default syslog implementation should make syslog.service a
28 # symlink to itself, so that this socket activates the right actual
29 # syslog service.
30 #
31 # Examples:
32 #
33 # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
34 # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
35 #
36 # Best way to achieve that is by adding this to your unit file
37 # (i.e. to rsyslog.service or syslog-ng.service):
38 #
39 # [Install]
40 # Alias=syslog.service