syslog.socket 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # SPDX-License-Identifier: LGPL-2.1+
  2. #
  3. # This file is part of systemd.
  4. #
  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.
  9. [Unit]
  10. Description=Syslog Socket
  11. Documentation=man:systemd.special(7)
  12. Documentation=https://www.freedesktop.org/wiki/Software/systemd/syslog
  13. DefaultDependencies=no
  14. Before=sockets.target
  15. # Don't allow logging until the very end
  16. Conflicts=shutdown.target
  17. Before=shutdown.target
  18. # Don't try to activate syslog.service if sysinit.target has failed.
  19. Conflicts=emergency.service
  20. Before=emergency.service
  21. [Socket]
  22. ListenDatagram=/run/systemd/journal/syslog
  23. SocketMode=0666
  24. PassCredentials=yes
  25. PassSecurity=yes
  26. ReceiveBuffer=8M
  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
  41. #
  42. # See https://www.freedesktop.org/wiki/Software/systemd/syslog for details.