Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #specific #logrotate
ADD COMMENT
Topic
Name
4+1 =