journalctl: add new --flush command and make use of it in systemd-journal-flush.service

System Internals / systemd - Lennart Poettering [poettering.net] - 22 October 2014 17:39 UTC

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.

74055aa journalctl: add new --flush command and make use of it in systemd-journal-flush.service
man/journalctl.xml | 14 +++++
src/journal/journalctl.c | 92 +++++++++++++++++++++++++++++++-
src/journal/journald-server.c | 3 +-
units/systemd-journal-flush.service.in | 5 +-
4 files changed, 110 insertions(+), 4 deletions(-)

Upstream: github.com


  • Share