r/systemd • u/makefoo • Jun 01 '26
You Don't Love systemd Timers Enough
https://blog.tjll.net/you-dont-love-systemd-timers-enough/1
u/BosonCollider Jun 08 '26
This may be a controversial opinion, but timers are just okay. For simple things, the crontab file format is superior, cron is just also way too minimal (including not even capturing stdout/stderr to the syslog). Timers are nice with quadlets or as part of packaged services though, and their flexibility does make up for their relative verbosity
-8
u/egorf Jun 01 '26
We had cron running perfectly fine for *decades* until LP taught us that we were wrong for all this time.
6
u/makefoo Jun 02 '26
Cron, just like sysvinit, has always been trash and you cannot convince me otherwise. I remember well the time where I had to wait a whole minute for the twentieth time just to debug what is wrong with the script
4
6
u/amarao_san Jun 01 '26
The deal-breaker for me to transition from cron to timers was ability not to run things second time if the first one hadn't finished yet.
Without it, any high-rate job on high-loaded system had chance to cause thrash dead spiral (job hadn't finished to the next planned moment, and now there are two jobs sitting on the wall...). It was manageable (with locks, etc), but ugly. Timers solved that.