blob: 71278f20a78ce500f63babaee49d7f2bd9d97aed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
[Unit]
Description=Sync calendars into org every 10 minutes
[Timer]
# OnCalendar rather than OnUnitActiveSec, because Persistent= only has an
# effect on calendar timers (systemd.timer(5)). A monotonic schedule silently
# ignores it, so a machine that slept through several intervals would come
# back to stale calendar files with nothing to trigger a catch-up.
OnCalendar=*:0/10
Persistent=true
# A cold boot should not wait for the next wall-clock slot. This is the case
# the whole change exists for: before the timer, a reboot meant no calendar
# sync at all until the agenda happened to be opened.
OnBootSec=2min
AccuracySec=30s
[Install]
WantedBy=timers.target
|