Here is my timer:
[Unit] Description=Do whatever [Timer] OnCalendar=daily UTC [Install] WantedBy=timers.target
It fails to start with the following error:
Failed to start mytimer.timer: Unit mytimer.timer failed to load: Invalid argument. See system logs and 'systemctl status mytimer.timer' for details.
systemctl status doesn't add any clarity to the error message
But, if I remove the UTC literal, it works perfectly:
[Unit] Description=Do whatever [Timer] OnCalendar=daily [Install] WantedBy=timers.target
What am I doing wrong?
This document describes the format accepted by
OnCalendar, and it shows that UTC can be used.
Yes, I tried using quotes - doesn't help. I also tried using the normalized form - same thing
- OS: CentOS 7
- kernel: 3.10.0-042stab113.21
- systemd: systemd-219-19.el7_2.9.x86_64