Rotates, compresses, and mails system logs. More information: https://manned.org/logrotate.
logrotate {{path/to/logrotate.conf}} --force
logrotate {{path/to/logrotate.conf}} --mail {{/usr/bin/mail_command}}
logrotate {{path/to/logrotate.conf}} --state /dev/null
logrotate {{path/to/logrotate.conf}} --skip-state-lock
logrotate
to log verbose output into the log file:logrotate {{path/to/logrotate.conf}} --log {{path/to/log_file}}