5 ms·
I love systemd for everything except its cron replacement, somehow it's a real mess. Yet I desperately want something more modern to play with journald well. An
by k_bx 4y ago
I love systemd for everything except its cron replacement, somehow it's a real mess. Yet I desperately want something more modern to play with journald well. Any advice?
- mariusor 4y agoI think generally people view timers as a net superior alternative to crons: they have better logic for the times, they support dependencies, they support randomized delays, etc. Why do you think they're a real mess?
- k_bx 4y agoI guess their UX for a simple cron-like use-case. I remember trying to set it up and it wasn't a great experience. Just trying to see if others agree or not.
- dinosaurdynasty 4y agoThe arch wiki has really good documentation on them. And they are so much more debuggable than cron it's insane, they are a lot easier for anything non-trivial.
- effie 4y agoWhat is there to debug in cron??? It periodically runs processes, it is simple and solid as rock.
- esarbe 4y agoI concur with siblings suggestion of systemd timers. Works like a charm. Has jittering and nice tui.
- loudmax 4y agoSystemd timers are more complicated than cron, but there's a reason for the complexity. Once you've put in the extra effort to understand the logic, they're really powerful. If you don't want the complexity, then just run crond.