chiark / gitweb /
journalctl: add new --flush command and make use of it in systemd-journal-flush.service
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Oct 2014 22:28:17 +0000 (00:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Oct 2014 22:39:42 +0000 (00:39 +0200)
commit74055aa76278232ff05574fc47c4e6b3560554a7
treecebf74b2f97108dc325ce4522962863b2b4c2f35
parent0e2f14014c65b4d8b30146e414579154cfa932da
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.
man/journalctl.xml
src/journal/journalctl.c
src/journal/journald-server.c
units/systemd-journal-flush.service.in