logoalt Hacker News

iam-TJlast Tuesday at 4:10 PM2 repliesview on HN

  $ systemctl cat [email protected]
  # /etc/systemd/system/[email protected]
  [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

Replies

PenguinCoderlast Tuesday at 5:31 PM

So the `OnCalendar` stanza is the same as a Cron job; without the helpful comments of the ordering? And that is considered _easier_??

Just use Cron. It does one thing and does it well.

show 1 reply
eqvinoxlast Tuesday at 4:18 PM

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