[systemd-devel] making journald logs persistent on raspberry pi

Lennart Poettering lennart at poettering.net
Tue Mar 31 12:48:48 UTC 2020


On Fr, 24.01.20 15:32, Dave Howorth (systemd at howorth.org.uk) wrote:

> It's quite common on the Raspberry Pi to make /var/log a tmpfs, in
> order to reduce the number of writes to the SD card that is the pi's
> main storage. That's quite acceptable for most logs but I'd like to
> make journald's logs persistent so I'll be able to investigate any
> problems that occur whilst booting or shutting down more easily.

Hmm, if you want volatile logging, use /run/log/...

It sounds strange to me, first making /var/log/... volatile, which is
kinda where the stuff goes that is supposed to be persistent and then
tryng to exclude stuff there again...

i.e. journald's Storage= setting most just allows you to choose
between /var/log/… and /run/log/… as data store.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list