3 ms·
Probably systemd these days.
by jolux 6y ago
Probably systemd these days.
- MertsA 6y agoHonestly all joking aside systemd timer units have a lot of nice aspects. The only drag is that crontab entries are so much more terse and quick to add. Just one line instead of two unit files plus enabling/starting the timer. You can actually get the best of both with systemd-crontab-generator (not from the systemd project, just an unaffiliated third party). https://manpages.debian.org/buster/systemd-cron/systemd-crontab-generator.8.en.html https://manpages.debian.org/buster/systemd-cron/systemd-cron... It creates transient unit files based off of a standard crontab on boot and after any file modifications. If you want to extend one of your cron jobs with something that you can't express in a crontab you can just mv it from /run to /etc and modify it however you'd like.
- mjevans 6y agoBy chance, do you happen to know of any program that will add (and enable / start / etc) a systemd entry based on a valid crontab line? Extra bonus points if it yoinks things the other way and lets you edit them as a nice crontab file that makes sense before re-integrating it in to the nightmare syntax.