logrotate systemd timer should run hourly rather than daily
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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/
...
[Timer]
OnCalendar=hourly
...
should allow "logrotate hourly" to work as expected.
See related comment at https:/
"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
ProcVersionSign
Uname: Linux 6.2.0-32-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
Date: Thu Sep 21 22:11:04 2023
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
SourcePackage: logrotate
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.