Hacker News new | ask | show | jobs
by jeroenhd 1288 days ago
I can't count the times I've had to debug cron scripts by copying the cron command line and running it through sudo because the script ran into an edge case, only to find out I didn't have the exact cron environment so manual runs didn't trigger the bug.

I much prefer the systemd solution. As an added bonus, systemd services allow for easy configuration of things like sandboxes and resource limits that would need to be hacked into a giant concatenated command line in cron, presumably without comments even.

1 comments

And I said "add option to have it in one file" (instead of "only have it in single file") for exactly that reason