Is it possible to run one logrotate check manually?
问题 Is it possible to run one iteration of logrotate manually without scheduling it on some interval? 回答1: Yes: logrotate --force $CONFIG_FILE 回答2: logrotate -d [your_config_file] invokes debug mode, giving you a verbose description of what would happen, but leaving the log files untouched. 回答3: If you want to force-run a single specific directory or daemon's log files, you can usually find the configuration in /etc/logrotate.d , and they will work standalone. Keep in mind that global