Merge pull request #33944 from yuwata/journal-max-retention-sec

journal: do not rotate journal when MaxRetentionSec= is set
This commit is contained in:
Luca Boccassi
2024-08-05 11:28:48 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -94,8 +94,7 @@ static int run(int argc, char *argv[]) {
/* The retention time is reached, so let's vacuum! */
if (t <= 0) {
log_info("Retention time reached, rotating.");
server_rotate(s);
log_info("Retention time reached, vacuuming.");
server_vacuum(s, /* verbose = */ false);
continue;
}

View File

@@ -32,7 +32,7 @@
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxRetentionSec=0
#MaxFileSec=1month
#ForwardToSyslog=no
#ForwardToKMsg=no