syslog.socket 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. [Unit]
  8. Description=Syslog Socket
  9. Documentation=man:systemd.special(7)
  10. Documentation=http://www.freedesktop.org/wiki/Software/systemd/syslog
  11. DefaultDependencies=no
  12. Before=sockets.target shutdown.target
  13. # Don't allow logging until the very end
  14. Conflicts=shutdown.target
  15. [Socket]
  16. ListenDatagram=/run/systemd/journal/syslog
  17. SocketMode=0666
  18. PassCredentials=yes
  19. PassSecurity=yes
  20. ReceiveBuffer=8M
  21. # The default syslog implementation should make syslog.service a
  22. # symlink to itself, so that this socket activates the right actual
  23. # syslog service.
  24. #
  25. # Examples:
  26. #
  27. # /etc/systemd/system/syslog.service -> /lib/systemd/system/rsyslog.service
  28. # /etc/systemd/system/syslog.service -> /lib/systemd/system/syslog-ng.service
  29. #
  30. # Best way to achieve that is by adding this to your unit file
  31. # (i.e. to rsyslog.service or syslog-ng.service):
  32. #
  33. # [Install]
  34. # Alias=syslog.service
  35. #
  36. # See http://www.freedesktop.org/wiki/Software/systemd/syslog for details.