Re: When will my timer next run?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux