Skip to main content

logrotate not working, what cronjob triggers /usr/sbin/logrotate /etc/logrotate.conf ?

Comments

2 comments

  • Nick

    After checking out a post on reddit, the issue seems to be that the AlmaLinux9 has a dedicated service by the name of "logrotate.timer" which was inactive on my servers. To enable the timer I used the following commands:

    systemctl start logrotate.timer

    systemctl enable logrotate.timer

    So there's no actual cronjob that triggers the logrotate but instead there is a systemd timer.

    Original post: https://www.reddit.com/r/AlmaLinux/comments/1fwogp6/comment/lqgqa66

    0
  • mtindor

    That's an interesting find and useful bit of knowledge to know.  Thanks for sharing.

    0

Please sign in to leave a comment.