[systemd-devel] What are the use cases of journalctl --flush ?
Andrei Borzenkov
arvidjaar at gmail.com
Wed Sep 22 09:33:35 UTC 2021
On Wed, Sep 22, 2021 at 9:27 AM <krave1986121 at gmail.com> wrote:
>
> Now that the operation of flush can be done automatically when you switch from Storage=volatile to #Storage=volatile, why do we still need journalctl --flush?
>
To switch from volatile storage to persistent storage on boot as
explained in the man page. On boot /var may not be available
initially, so journald starts with /run and flush copies logs from
/run to /var and switches to persistent storage.
More information about the systemd-devel
mailing list