watchmansky Asked: 2015-12-18 12:07:43 +0800 CST2015-12-18 12:07:43 +0800 CST 2015-12-18 12:07:43 +0800 CST Is it possible to run logrotate manually 772 I created new files in /etc/logrotate.d/ how run an iteration of logrotate manually to check these? linux 2 Answers Voted Best Answer Pol Hallen 2015-12-18T12:08:15+08:002015-12-18T12:08:15+08:00 Try with: logrotate --force $CONFIG_FILE or you can run it in verbose and force mode: logrotate -vf /etc/logrotate.conf user9517 2015-12-18T12:12:09+08:002015-12-18T12:12:09+08:00 You can run logrotate in debug mode which will tell you what it would do without actually making changes. -d, --debug Turns on debug mode and implies -v. In debug mode, no changes will be made to the logs or to the logrotate state file.
Try with:
or you can run it in verbose and force mode:
You can run logrotate in debug mode which will tell you what it would do without actually making changes.