Interview Prep/Linux/Processes, Signals & systemd

Is the journal persistent across reboots?

IntermediateConceptProcesses, Signals & systemd
Answer

It depends on Storage= in /etc/systemd/journald.conf. With the default auto, logs are persistent only if /var/log/journal/ exists; otherwise they go to /run/log/journal/ and vanish on reboot. RHEL 9 and Ubuntu ship persistent by default.

sudo mkdir -p /var/log/journal && sudo systemctl restart systemd-journald
journalctl --list-boots
All Linux questions Roadmap: Linux

More on Processes, Signals & systemd