Score:1

systemd timer job not working

dz flag

I want the job to run every day at 2am and 2pm I have this in the .timer file

OnCalendar=*-*-* 02:00:00,14:00:00

But when I systemctl start myjob.timer I get this error:

Failed to start myjob.timer: Unit myjob.timer has a bad unit file setting.

I've googled, but not sure exactly where wrong.

in flag
It would be helpful to see the complete unit file.
guesty avatar
dz flag
I removed the seconds and it worked.
in flag
I don't know why your answer was deleted. I flagged it for undeletion. If it is undeleted, just extend it a little (add the correct syntax) and accept it.
Score:2
dz flag

my bad - seconds are not allowed, this worked:

OnCalendar=*-*-* 02:00,14:00
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.