summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-23 00:28:17 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-23 00:39:42 +0200
commit74055aa76278232ff05574fc47c4e6b3560554a7 (patch)
treecebf74b2f97108dc325ce4522962863b2b4c2f35 /man
parent0e2f14014c65b4d8b30146e414579154cfa932da (diff)
journalctl: add new --flush command and make use of it in systemd-journal-flush.service
This new command will ask the journal daemon to flush all log data stored in /run to /var, and wait for it to complete. This is useful, so that in case of Storage=persistent we can order systemd-tmpfiles-setup afterwards, to ensure any possibly newly created directory in /var/log gets proper access mode and owners.
Diffstat (limited to 'man')
-rw-r--r--man/journalctl.xml14
1 files changed, 14 insertions, 0 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml
index 7fb6afc8f..db2a1e142 100644
--- a/man/journalctl.xml
+++ b/man/journalctl.xml
@@ -878,6 +878,20 @@
operation.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>--flush</option></term>
+
+ <listitem><para>Asks the Journal
+ daemon to flush any log data stored in
+ <filename>/run/systemd/log</filename>
+ into
+ <filename>/var/systemd/log</filename>,
+ if persistent storage is enabled. This
+ call does not return until the
+ operation is
+ complete.</para></listitem>
+ </varlistentry>
+
<xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" />
<xi:include href="standard-options.xml" xpointer="no-pager" />