System administration command. Manipulate log files according to commands given in config_files.
Debug mode. No changes will be made to log files.
Force rotation of log files.
Use the specified command to mail log files. The default is /bin/mail -s.
Save state information in file. The default is /var/lib/logrotate.status.
Show syntax and options.
Describe what is being done and what log files are affected.
Compress old versions of log files with gzip.
Use command to compress log files. Default is gzip.
Append filename extension to compressed files instead of the compress command’s default.
Specify options to pass to the compress command. Default for gzip is -9 for maximum compression.
Copy log file, but do not change the original.
Copy log file, then truncate it in place. For use with programs whose logging cannot be temporarily halted.
After rotation, re-create log file with the specified permissions, owner, and group. permissions must be in octal. If any of these parameters is missing, the log file’s original attributes will be used.
Rotate log files every day.
Don’t compress log file until the next rotation.
End a postrotate or ...