Topic: logrotate
-
Configuring logrotate: copytruncate, postrotate and dry-run testing
A logrotate rule under /etc/logrotate.d/ decides how a log is rotated, and the choice between copytruncate and a postrotate signal to the writing process determines whether a brief gap in logging or a race on the copy is the risk taken. logrotate -d previews the plan without touching any file.
Machine-readable: JSON