chiark / gitweb /
journald: proceed even if some sockets are unknown
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Nov 2014 20:05:55 +0000 (15:05 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 26 Nov 2014 20:17:07 +0000 (15:17 -0500)
commit3d82301321afdcc4f2f8786883bd15b1a64c6e83
tree083f97a80bba06093309ddd34d6c3892f9531f62
parent5607d856b8606ba75446a07ab5e9048753e1d7a6
journald: proceed even if some sockets are unknown

systemd-journald would refuse to start if it received an unknown
socket from systemd. This is annoying, because the failure more for
systemd-journald is unpleasant: systemd will keep restarting journald,
but most likely the same error will occur every time. It is better
to continue. journald will try to open missing sockets on its own,
so things should mostly work.

One question is whether to close the sockets which cannot be parsed or
to keep them open. Either way we might lose some messages. This
failure is most likely for the audit socket (selinux issues), which
can be opened multiple times so this not a problem, so I decided to
keep them open because it makes it easier to debug the issue after the
system is fully started.
src/journal/journald-server.c