Answer the question
In order to leave comments, you need to log in
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.timer
it shows Trigger: ...; 3h 55min left.
2) I tried OnCalendar=00/2:00
, rebooted, nothing has changed
3) OnCalendar=*-*-* 0/2:00:00
nothing has changed.
What could be the problem?
[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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question