]>
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 | |
4 | # under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 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 | |
5cf18f77 | 13 | Before=sockets.target syslog.target |
52f319b2 | 14 | |
a0e155d4 LP |
15 | # Pull in syslog.target to tell people that /dev/log is now accessible |
16 | Wants=syslog.target | |
17 | ||
52f319b2 | 18 | [Socket] |
259d2e76 | 19 | ListenDatagram=/run/systemd/journal/syslog |
52f319b2 | 20 | SocketMode=0666 |
271b032a | 21 | PassCredentials=yes |
52f319b2 | 22 | |
4c0bebc3 LP |
23 | # The default syslog implementation should make syslog.service a |
24 | # symlink to itself, so that this socket activates the right actual | |
25 | # syslog service. | |
26 | # | |
27 | # Examples: | |
28 | # | |
29 | # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service | |
30 | # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service | |
31 | # | |
32 | # Best way to achieve that is by adding this to your unit file | |
33 | # (i.e. to rsyslog.service or syslog-ng.service): | |
34 | # | |
35 | # [Install] | |
36 | # Alias=syslog.service |