How to run systemd timer twice daily
In order to run a systemd timer twice daily at fixed times, use this syntax in theĀ .timer
file:
OnCalendar=*-*-* 00,12:00:00
This line means: Run the service on each and every day (*-*-*
) at 00:00:00
and 12:00:00
(00,12:00:00
)