Answers for "run specific logrotate"

0

run specific logrotate

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.
Posted by: Guest on October-25-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language