From 37b7affefde5443680d73642a990ce86776e28af Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 11 Oct 2015 23:25:43 -0400 Subject: Document journald sockets paths a bit more Adding them to the documentation makes it easier to find the right man page for people who are trying to understand where some socket in the filesystem is coming from. --- Makefile-man.am | 5 +++++ man/systemd-journald.service.xml | 17 ++++++++++++++++- src/journal/journald-server.c | 5 +++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Makefile-man.am b/Makefile-man.am index 218a299e91..3fbc8866c0 100644 --- a/Makefile-man.am +++ b/Makefile-man.am @@ -372,6 +372,7 @@ MANPAGES_ALIAS += \ man/systemd-hybrid-sleep.service.8 \ man/systemd-initctl.8 \ man/systemd-initctl.socket.8 \ + man/systemd-journald-audit.socket.8 \ man/systemd-journald-dev-log.socket.8 \ man/systemd-journald.8 \ man/systemd-journald.socket.8 \ @@ -658,6 +659,7 @@ man/systemd-hibernate.service.8: man/systemd-suspend.service.8 man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8 man/systemd-initctl.8: man/systemd-initctl.service.8 man/systemd-initctl.socket.8: man/systemd-initctl.service.8 +man/systemd-journald-audit.socket.8: man/systemd-journald.service.8 man/systemd-journald-dev-log.socket.8: man/systemd-journald.service.8 man/systemd-journald.8: man/systemd-journald.service.8 man/systemd-journald.socket.8: man/systemd-journald.service.8 @@ -1364,6 +1366,9 @@ man/systemd-initctl.html: man/systemd-initctl.service.html man/systemd-initctl.socket.html: man/systemd-initctl.service.html $(html-alias) +man/systemd-journald-audit.socket.html: man/systemd-journald.service.html + $(html-alias) + man/systemd-journald-dev-log.socket.html: man/systemd-journald.service.html $(html-alias) diff --git a/man/systemd-journald.service.xml b/man/systemd-journald.service.xml index dae6ee6042..6b572b8725 100644 --- a/man/systemd-journald.service.xml +++ b/man/systemd-journald.service.xml @@ -46,6 +46,7 @@ systemd-journald.service systemd-journald.socket systemd-journald-dev-log.socket + systemd-journald-audit.socket systemd-journald Journal service @@ -54,6 +55,7 @@ systemd-journald.service systemd-journald.socket systemd-journald-dev-log.socket + systemd-journald-audit.socket /usr/lib/systemd/systemd-journald @@ -227,7 +229,20 @@ /var/log/journal is not available, or when is set in the journald.conf5 - configuration file. + configuration file. + + + + /dev/kmsg + /dev/log + /run/systemd/journal/dev-log + /run/systemd/journal/socket + /run/systemd/journal/stdout + + Sockets that + systemd-journald will listen on that are + visible in the file system. In addition to those, journald can + listen for audit events using netlink. diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c index ae325c439e..3d5f2524fe 100644 --- a/src/journal/journald-server.c +++ b/src/journal/journald-server.c @@ -1573,18 +1573,23 @@ int server_init(Server *s) { no_sockets = s->native_fd < 0 && s->stdout_fd < 0 && s->syslog_fd < 0 && s->audit_fd < 0; /* always open stdout, syslog, native, and kmsg sockets */ + + /* systemd-journald.socket: /run/systemd/journal/stdout */ r = server_open_stdout_socket(s); if (r < 0) return r; + /* systemd-journald-dev-log.socket: /run/systemd/journal/dev-log */ r = server_open_syslog_socket(s); if (r < 0) return r; + /* systemd-journald.socket: /run/systemd/journal/socket */ r = server_open_native_socket(s); if (r < 0) return r; + /* /dev/ksmg */ r = server_open_dev_kmsg(s); if (r < 0) return r; -- cgit v1.2.3-54-g00ecf