I
I
Inspector-Due2020-08-31 21:12:30
linux
Inspector-Due, 2020-08-31 21:12:30

How does systemd timer work?

I understand with systemd timer, there was a problem - timer does not work as it should.
1) I tried OnCalendar=hourly, rebooted, but systemctl status myscript.timerit shows Trigger: ...; 3h 55min left.
2) I tried OnCalendar=00/2:00, rebooted, nothing has changed
3) OnCalendar=*-*-* 0/2:00:00nothing has changed.
What could be the problem?

myscript.timer

[Unit]
Description=simple timer

[Timer]
OnCalendar=
OnCalendar=*-*-* 0/2:00:00

[Install]
WantedBy=timers.target

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
obohovyk, 2020-09-02
@obohovyk

What should the timer do? As far as I understand, it should execute myscript.service.
Show output please.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question