← Back to context

Comment by eqvinox

1 hour ago

How do you express those things in a systemd timer? E.g. run something 4x per day, */6 in cron.

  $ systemctl cat public-inbox-watch@.timer
  # /etc/systemd/system/public-inbox-watch@.timer
  [Unit]
  Description=Periodic fetch of public mailing list

  [Timer]
  # twice a day
  OnCalendar=*-*-* 5,17:35
  RandomizedDelaySec=1h
  Persistent=true

  [Install]
  WantedBy=multi-user.target

  • I, er, what? It's... the same as cron? I'm confused now. It's not exactly the same, I guess?