I am hitting this issue as well - I've been able to work around it by
running a script post startup which uses sed to replace the `Daily`
lines in the logrotate.timer file with hourly, and reload the systemd
daemon config.

#!/bin/bash
sed -i "/Description=Daily rotation of log files/c\Description=Hourly rotation 
of log files" /lib/systemd/system/logrotate.timer
sed -i "/OnCalendar=daily/c\OnCalendar=hourly" 
/lib/systemd/system/logrotate.timer
systemctl daemon-reload; systemctl stop logrotate.timer; systemctl start 
logrotate.timer

This is a crude workaround, but I assume the actual fix should be to
modify the same items in the distro logrotate.timer file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2037022

Title:
  logrotate systemd timer should run hourly rather than daily

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/2037022/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to