]>
Commit | Line | Data |
---|---|---|
52f319b2 LP |
1 | # This file is part of systemd. |
2 | # | |
3 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
52f319b2 LP |
6 | # (at your option) any later version. |
7 | ||
52f319b2 LP |
8 | [Unit] |
9 | Description=Syslog Socket | |
49dbfa7b LP |
10 | Documentation=man:systemd.special(7) |
11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/syslog | |
52f319b2 | 12 | DefaultDependencies=no |
5d4caf56 | 13 | Before=sockets.target shutdown.target |
746e436d LP |
14 | |
15 | # Don't allow logging until the very end | |
ead51eb4 | 16 | Conflicts=shutdown.target |
52f319b2 LP |
17 | |
18 | [Socket] | |
259d2e76 | 19 | ListenDatagram=/run/systemd/journal/syslog |
52f319b2 | 20 | SocketMode=0666 |
271b032a | 21 | PassCredentials=yes |
54ecda32 | 22 | PassSecurity=yes |
bb99a35a | 23 | ReceiveBuffer=8M |
52f319b2 | 24 | |
4c0bebc3 LP |
25 | # The default syslog implementation should make syslog.service a |
26 | # symlink to itself, so that this socket activates the right actual | |
27 | # syslog service. | |
28 | # | |
29 | # Examples: | |
30 | # | |
31 | # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service | |
32 | # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service | |
33 | # | |
34 | # Best way to achieve that is by adding this to your unit file | |
35 | # (i.e. to rsyslog.service or syslog-ng.service): | |
36 | # | |
37 | # [Install] | |
38 | # Alias=syslog.service | |
746e436d LP |
39 | # |
40 | # See http://www.freedesktop.org/wiki/Software/systemd/syslog for details. |