]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/journalctl.c
journalctl: add ability to vacuum and rotate in one step
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 16:36:56 +0000 (18:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 19:44:48 +0000 (21:44 +0200)
commit8df64fd01daf0b1664a96ad8c89f64f142af0e93
tree3cb49834a68c6e440a84c7e171b6261ba8e9e12a
parentd03077759e972801ec2bfff8af6ac475bb97d5ad
journalctl: add ability to vacuum and rotate in one step

journalctl --vacuum-*= only vacuums archived files. To archive all
active files the rotate operation is used. Let's add a new switch that
combines both, so that the user a single command to first move all
running journal files into archival and then vacuum them.

See: #1017
src/journal/journalctl.c