What command can I run to to flush the journal to the persistent storage

When I restart or shut-down my Endeavour OS computer, I see the screen shows the following entries.

(1 of 2) A start job is running for Journal Service
(2 of 2) A stop job is running for Flushing Journal to Persistent Storage

Most of the times, those jobs don’t take much, but sometimes they took more than a minute to complete.

Is there a command I could run before restarting / shutting down the computer to flush the journal to the hard disk?

journalctl --help
--sync  Synchronize unwritten journal messages to disk
--flush Flush all journal data from /run into /var
1 Like

Thank you! I didn’t understand the stop job was simply running journalctl. I thought it was running a completely different command, or a script.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.