How to run systemd timer every 30 seconds

The syntax to run a systemd timer every 30 seconds is:

example.txt
OnCalendar=*-*-* *:*:00,30

i.e. run on the first (00) and 30th second of every minute.


Check out similar posts by category: Linux, Systemd