mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
Merge pull request #33944 from yuwata/journal-max-retention-sec
journal: do not rotate journal when MaxRetentionSec= is set
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#RuntimeKeepFree=
|
||||
#RuntimeMaxFileSize=
|
||||
#RuntimeMaxFiles=100
|
||||
#MaxRetentionSec=
|
||||
#MaxRetentionSec=0
|
||||
#MaxFileSec=1month
|
||||
#ForwardToSyslog=no
|
||||
#ForwardToKMsg=no
|
||||
|
||||
Reference in New Issue
Block a user