diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-03 23:08:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-03 23:08:33 +0100 |
commit | dbd2a83fbf051fc51bdca3aa7536c78479488c5b (patch) | |
tree | 6514add1da5ccf64179b8094ed497fb5ee043115 /src/journal/test-journal.c | |
parent | a6e841b454e076ecbab6abc0bceb85ed06fd5c70 (diff) |
journalctl: add new --vacuum-size= and --vacuum-time= commands to clean up journal files based on a size/time limit
This is equivalent to the effect of SystemMaxUse= and RetentionSec=,
however can be invoked directly instead of implicitly.
Diffstat (limited to 'src/journal/test-journal.c')
-rw-r--r-- | src/journal/test-journal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/test-journal.c b/src/journal/test-journal.c index 6025d04ba4..74168b9b83 100644 --- a/src/journal/test-journal.c +++ b/src/journal/test-journal.c @@ -126,7 +126,7 @@ static void test_non_empty(void) { if (arg_keep) log_info("Not removing %s", t); else { - journal_directory_vacuum(".", 3000000, 0, NULL); + journal_directory_vacuum(".", 3000000, 0, NULL, true); assert_se(rm_rf_dangerous(t, false, true, false) >= 0); } @@ -165,7 +165,7 @@ static void test_empty(void) { if (arg_keep) log_info("Not removing %s", t); else { - journal_directory_vacuum(".", 3000000, 0, NULL); + journal_directory_vacuum(".", 3000000, 0, NULL, true); assert_se(rm_rf_dangerous(t, false, true, false) >= 0); } |