Tell me the best way to get log-rotating changes to take effect?
I followed this link to change log-rotate configuration for RHEL 6
What should i do after i made the change to the config file?
Best Answer
logrotate
uses crontab
to work. It's scheduled work, not a daemon, so no need to reload its configuration.
When the crontab
executes logrotate
, it will use your new config file automatically.
If you need to test your config you can also execute logrotate
on your own with the command:
logrotate /etc/logrotate.d/your-logrotate-config
Or as mentioned in comments, identify the refer to slm's answer to have a precise cron.daily explanationlogrotate
line in the output of the command crontab -l
and execute the command line