[systemd-devel] Journalctl reading incorrect file

Lennart Poettering lennart at poettering.net
Thu Jan 28 14:08:43 UTC 2021


On Fr, 15.01.21 09:17, John Lane (systemd at jelmail.com) wrote:

> Hello,
>
> I've just set up a new system and have noticed a problem with journalctl
> where it appears to be reading from the incorrect journal. The journal
> is running and I can direct it at the correct file using -D, but I don't
> understand what is happening.
>
> There is a journal in /run/log/journal which contains events up to the
> switch root. There is a journal in /var/log/journal which contains those
> same events plus the events following the switch root. Events appear to
> be written correctly to /var but journalctl appears to read from
> /run.

journalctl reads from both dirs, always. What makes you think it reads
from the wrong dir only?

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list