Where is /etc/cron.daily/logrotate?

Solution verified - Updated on

Request a new translation or translation update

A translation for your language preference does not exist. Click below to request a translation for your selected language.

Submit request

Environment

  • Red Hat Enterprise Linux 9, 10
  • logrotate

Issue

  • /etc/cron.daily/logrotate is missing in RHEL 9 and newer.

Resolution

Starting with Red Hat Enterprise Linux 9, logrotate is no longer run via cron, instead using a systemd timer:

/usr/lib/systemd/system/logrotate.timer

Root Cause

Given the presence and flexibility of functionality like systemd timers in Red Hat Enterprise Linux, services are increasingly moving to use systemd-native mechanisms like socket activation and timers, rather than the traditional Unix-like equivalents.

This solution is part of Red Hat's fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.