SUSE Support

Here When You Need Us

/usr/sbin/logrotate does not rotate the log files in /var/log

This document (7022373) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 11 Service Pack 4 (SLES 11 SP4)


The log files in /var/log/ are not rotated.


Please check if a different application is modifying the files in /var/spool/cron/lastrun.
You can easily check it with the following command.:

# stat /var/spool/cron/lastrun/cron.daily 
  File: `/var/spool/cron/lastrun/cron.daily'
  Size: 0               Blocks: 0          IO Block: 4096   regular empty file
Device: ca02h/51714d    Inode: 713141      Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2017-11-22 15:30:01.000000000 +0100
Modify: 2017-11-22 15:30:01.000000000 +0100
Change: 2017-11-22 15:30:01.000000000 +0100
 Birth: -

Access time, modify time and change time of the files should be equal as the files will be removed and newly created when cron.daily had been run. If they are not, something has changed the time on purpose (maybe some backup software)


/usr/sbin/logrotate will be run by crond on a daily basis.
To do so crond is executing /usr/lib/cron/run-crons every 15 minutes which in turn is checking the change time (ctime) of the files in /var/spool/cron/lastrun/

If another application is modifying the change time of /var/spool/cron/lastrun/cron.daily, /usr/lib/cron/run-crons will never run any directive file in /etc/cron.daily/ where the logrotate file is stored as well.

Additional Information


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7022373
  • Creation Date: 22-Nov-2017
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.