- logrotate renames the log, shifts the old files and creates a new one according to the
createline; it checks conditions when it runs. --debugprints the rotation plan and changes nothing.- journald rotates the systemd journal itself;
SystemMaxUselimits its growth,--vacuum-sizeremoves archives, the active file stays. - After rotation, check both the old text in
.1and the program's write to the new log. - At the start of the lesson logrotate described a rename, yet the files did not change: the
--debugoption only showed the plan.
Step 9 of 9 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson