📅  最后修改于: 2022-03-11 14:50:58.406000             🧑  作者: Mango
logrotate --force $CONFIG_FILE
--force will force rotation even if files do not meet criteria (age, size, etc), but please consider that this is the only way to spot real problems that with logrotate -d would not emerge
logrotate -d [your_config_file] invokes debug mode, giving you a verbose description of what would happen, but leaving the log files untouched.