I’m trying to implement a script as a service to run at shutdown, but before network gets down. Since I cannot get it to work (which is not the question here), I want to check the shutdown logs.
But I cannot get them to stay persistent.
I tried leaving the settings in /etc/systemd/journald.conf alone and just doing mkdir /var/log/journal. This leaves /var/log/journal empty.
And I tried setting
[Journal]
Storage=persistent
inside /etc/systemd/journald.conf, which at least produces files inside /var/log/journal, but still they don’t survive a reboot.
How do I know? journalctl only shows -- Journal begins at and then the time of the current boot. As well as journalctl --list-boots lists only one boot, the current one, line starting with 0.
So, what am I doing wrong, how can I get the systemd journal to stay persistent?