[systemd-devel] 回复: systemd-devel Digest, Vol 137, Issue 26

krave1986121 at gmail.com krave1986121 at gmail.com
Wed Sep 22 13:34:36 UTC 2021


> >
> > 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.
>


So, can I assume that journalctl --flush is for Linux internal processes not
for end users?

-----邮件原件-----
发件人: systemd-devel <systemd-devel-bounces at lists.freedesktop.org> 代表
systemd-devel-request at lists.freedesktop.org
发送时间: 2021-09-22 20:00
收件人: systemd-devel at lists.freedesktop.org
主题: systemd-devel Digest, Vol 137, Issue 26

Send systemd-devel mailing list submissions to
	systemd-devel at lists.freedesktop.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.freedesktop.org/mailman/listinfo/systemd-devel
or, via email, send a message with subject or body 'help' to
	systemd-devel-request at lists.freedesktop.org

You can reach the person managing the list at
	systemd-devel-owner at lists.freedesktop.org

When replying, please edit your Subject line so it is more specific than
"Re: Contents of systemd-devel digest..."


Today's Topics:

   1. Re:  What are the use cases of journalctl --flush ?
      (Andrei Borzenkov)


----------------------------------------------------------------------

Message: 1
Date: Wed, 22 Sep 2021 12:33:35 +0300
From: Andrei Borzenkov <arvidjaar at gmail.com>
To: SystemD Devel <systemd-devel at lists.freedesktop.org>
Subject: Re: [systemd-devel] What are the use cases of journalctl
	--flush ?
Message-ID:
	<CAA91j0UCeXHFmFK3bNW15SfxfcAAPdQUu3iMxq-nXwE0zXp8Ug at mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

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.


------------------------------

Subject: Digest Footer

_______________________________________________
systemd-devel mailing list
systemd-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


------------------------------

End of systemd-devel Digest, Vol 137, Issue 26
**********************************************



More information about the systemd-devel mailing list