[systemd-devel] When will my timer next run?
David Anderson
dave at natulte.net
Sat Aug 31 02:52:52 UTC 2019
Did you `systemctl enable rsync-Saruman.timer` to activate the timer?
Timers can be enabled and disabled just like services, you need to enable
it after creating.
- Dave
On Fri, Aug 30, 2019 at 8:05 PM Kenneth Porter <shiva at sewingwitch.com>
wrote:
> I've created my service timer with the following:
>
> [Timer]
> # wait a bit after boot to let our victim catch up with its work
> OnBoot=13m
> # let the victim get some work done between backups
> # we use inactive to prevent back-to-back backups if they run long
> OnUnitInactiveSec=1h
>
> I then run list-timers but all the time columns for my service are n/a. I
> want my backup to run with an hour between backups, and with a pause after
> boot to let all the machines come up and finish overdue work from any long
> power outage. I started the timer unit and then see this:
>
> # systemctl list-timers
> NEXT LEFT LAST
> PASSED UNIT ACTIVATES
> n/a n/a n/a
> n/a
> rsync-Saruman.timer rsync-Saruman.service
>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20190830/cb26b567/attachment-0001.html>
More information about the systemd-devel
mailing list