I created new files in
/etc/logrotate.d/
how run an iteration of logrotate manually to check these?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI created new files in
/etc/logrotate.d/
how run an iteration of logrotate manually to check these?
Try with:
logrotate --force $CONFIG_FILE
or you can run it in verbose and force mode:
logrotate -vf /etc/logrotate.conf
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.