1

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.

guesty
  • 63
  • 5

1 Answers1

2

my bad - seconds are not allowed, this worked:

OnCalendar=*-*-* 02:00,14:00
guesty
  • 63
  • 5