The default state file is /var/lib/logrotate. status. If /dev/null is given as the state file, then logrotate will not try to write the state file. –skip-state-lock Do not lock the state file, for example if locking is unsupported or prohibited.
How do I check logrotate logs?
The only thing that logrotate records normally is in cat /var/lib/logrotate/status . If you’re running logrotate from cron and not redirecting the output, the output, if there is any, will go to email for whichever ID is running the cron job.
How do you refresh logrotate?
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. Just to add to your answer, the cron entry for logrotate is scheduled to run once a day.