Closed spacemanspiff2007 closed 1 year ago
Please add OnCalendar=
above your OnCalendar=Sun *-*-* 3:55:00
as instructed in README - https://github.com/azlux/log2ram#refresh-time.
As explained here, https://bbs.archlinux.org/viewtopic.php?pid=1642051#p1642051, values in override are "summed" with values in original timer file, thus the OnCalendar must be cleared first.
Timers are cumulative, so in the override you need to reset the existing timers otherwise your OnCalendar setting gets added to the existing one.
For the very same reason, you can remove [Unit]
and [Install]
sections altogether from your override file. Leave just the [Timer]
there.
I have tested this on my machine
[Timer]
OnCalendar=
OnCalendar=Sun *-*-* 3:55:00
=>
pi@raspberrypi:~ $ sudo systemctl list-timers --all
NEXT LEFT LAST PASSED UNIT ACTIVATES
Sun 2023-10-29 03:55:00 CET 3 days left Tue 2023-10-24 23:55:02 CEST 9h ago log2ram-daily.timer log2ram-daily.service
Thank you for your help - it works now as expected
I tried changing the sync interval to weekly following the description:
Somehow the timer does not get picked up. What am I doing wrong?