Troubleshooting systemd timers

Richard Shaw hobbes1069 at gmail.com
Tue Dec 30 15:46:54 UTC 2014


It seems that the version of systemd in F20 doesn't have the "systemctl
list-timers" option which makes interrogating timers more difficult.

I need a timer that runs daily (with certain prerequisites) but I'm not
having any luck.

Here's my timer unit:
[Unit]
Description=Timer for the JSON based schedule grabber for MythTV

[Timer]
#OnCalendar=*-*-* 00:00:00
#OnCalendar=daily
OnUnitActiveSec=1d

[Install]
WantedBy=network-online.target

--- end ---

I've tried all 3 of the timer settings above but unless I'm interpreting
things incorrectly (could be the case), none of them seem to work. If I use
"systemctl show" to get what information I can I see the following:

For OnCalendar=daily (or the the equivalent one above it) I get this:
NextElapseUSecMonotonic=0
NextElapseUSecRealtime=44y 11month 4w 1d 10h 30min

For the OnUnitActiveSec version I get this:
NextElapseUSecMonotonic=1w 2d 23h 6.227254s
NextElapseUSecRealtime=0

Neither of those look anything close to 24 hours, though I suppose the 1w
one is the closest :)

What am I doing wrong?

Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20141230/0f89ab0f/attachment.html>


More information about the devel mailing list