Public bug reported: Logrotate supports "hourly rotation, however the Ubuntu logrotate systemd Timer runs "daily" - so "hourly" logrotate jobs are still only run daily.
Updating /etc/systemd/system/timers.target.wants/logrotate.timer: ... [Timer] OnCalendar=hourly ... should allow "logrotate hourly" to work as expected. See related comment at https://github.com/logrotate/logrotate/issues/249#issuecomment-485829363 "The tricky part is that one needs to change the default cron hook (or systemd timer) to make hourly actually work as expected." Thanks! ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: logrotate 3.21.0-1 ProcVersionSignature: Ubuntu 6.2.0-32.32-generic 6.2.16 Uname: Linux 6.2.0-32-generic x86_64 ApportVersion: 2.26.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown Date: Thu Sep 21 22:11:04 2023 ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: logrotate UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: logrotate (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug lunar -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to logrotate in Ubuntu. https://bugs.launchpad.net/bugs/2037022 Title: logrotate systemd timer should run hourly rather than daily Status in logrotate package in Ubuntu: New Bug description: Logrotate supports "hourly rotation, however the Ubuntu logrotate systemd Timer runs "daily" - so "hourly" logrotate jobs are still only run daily. Updating /etc/systemd/system/timers.target.wants/logrotate.timer: ... [Timer] OnCalendar=hourly ... should allow "logrotate hourly" to work as expected. See related comment at https://github.com/logrotate/logrotate/issues/249#issuecomment-485829363 "The tricky part is that one needs to change the default cron hook (or systemd timer) to make hourly actually work as expected." Thanks! ProblemType: Bug DistroRelease: Ubuntu 23.04 Package: logrotate 3.21.0-1 ProcVersionSignature: Ubuntu 6.2.0-32.32-generic 6.2.16 Uname: Linux 6.2.0-32-generic x86_64 ApportVersion: 2.26.1-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown Date: Thu Sep 21 22:11:04 2023 ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: logrotate UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/2037022/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp