[systemd-bugs] [Bug 88725] New: systemd 218 timer w/ Persistent=true doesn't fire the first time
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 22 16:48:01 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=88725
Bug ID: 88725
Summary: systemd 218 timer w/ Persistent=true doesn't fire the
first time
Product: systemd
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: systemd-bugs at lists.freedesktop.org
Reporter: me at mooluv.com
QA Contact: systemd-bugs at lists.freedesktop.org
A persistent timer that has not previously fired will not fire on startup, this
is valid per a pedantic reading of the man page. For the needs of an
individual with a laptop it would be nice to not have to leave the laptop on
overnight just to get a last-run timestamp so that Persistent works. I haven't
found a method to fake the timer having fired unfortunately.
Details showing how persistent=true behaves:
systemd 218
+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP
+GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN
NEXT LEFT LAST
PASSED UNIT ACTIVATES
Fri 2015-01-23 00:00:00 EST 4h 36min left n/a
n/a zfs-auto-snapshot-daily.timer zfs-auto-snapshot-daily.service
relevant unit parts:
[Timer]
OnCalendar=daily
Persistent=true
The above timer has been enabled on my laptop for the last 3 days. My laptop
is not on as midnight and so the timer doesn't fire.
Another timer:
Thu 2015-01-22 20:00:00 EST 33min left Thu 2015-01-22 19:00:15 EST
26min ago zfs-auto-snapshot-hourly.timer zfs-auto-snapshot-hourly.service
Same basic idea, only hourly. This DOES fire after my laptop comes out of
suspend as shown here, snapshot names are in UTC, I put the EST time in last
column
rpool/home at znap_2015-01-22-0300_hourly 15.7M - 2.40G - - 10:00pm EST
rpool/home at znap_2015-01-22-1413_hourly 16.2M - 2.40G - - 09:14am EST
rpool/home at znap_2015-01-22-1500_hourly 37.5M - 2.40G - - 10:00am EST
rpool/home at znap_2015-01-22-1600_hourly 37.7M - 2.40G - - 11:00am EST
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150123/da634131/attachment.html>
More information about the systemd-bugs
mailing list