Package: logrotate
Version: 3.18.0-2+deb11u1
Severity: normal
Dear Maintainer,
"hourly" rotation was added to logrotate in 2019(?).
However, the Debian 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 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!
-- Package-specific info:
Contents of /etc/logrotate.d
total 44
-rw-r--r-- 1 root root 120 Aug 20 2022 alternatives
-rw-r--r-- 1 root root 173 Jun 10 2021 apt
-rw-r--r-- 1 root root 130 Oct 14 2019 btmp
-rw-r--r-- 1 root root 112 Aug 20 2022 dpkg
-rw-r--r-- 1 root root 128 May 4 2021 exim4-base
-rw-r--r-- 1 root root 108 May 4 2021 exim4-paniclog
-rw-r--r-- 1 root root 354 Nov 23 2020 fail2ban
-rw-r--r-- 1 root root 173 Nov 4 2020 monitorix
-rw-r--r-- 1 root root 374 May 20 2022 rsyslog.disabled
-rw-r--r-- 1 root root 534 Feb 28 2023 syslog-ng
-rw-r--r-- 1 root root 145 Oct 14 2019 wtmp
-- System Information:
Debian Release: 11.7
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'),
(500, 'oldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-22-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages logrotate depends on:
ii anacron 2.3-30
ii cron [cron-daemon] 3.0pl1-137
ii libacl1 2.2.53-10
ii libc6 2.31-13+deb11u6
ii libpopt01.18-2
ii libselinux1 3.1-3
ii systemd-sysv247.3-7+deb11u4
Versions of packages logrotate recommends:
ii mailutils [mailx] 1:3.10-3+b1
logrotate suggests no packages.
-- no debconf information