News for hackers. Stuff that matters.
Re:Cron best practices by throwaway984393 on Friday March 11, 2022 @05:49AM (#30638422)
Locking is non-trivial, don't just use flock. Use the maildir method and check for stale locks; it's atomic, portable, and NFS-safe.

Using Ohmycron is better than nothing, but it doesn't handle timeouts and stale locks and some other useful things. Seems like we still need a better universal wrapper for cron jobs.

Re:Cron best practices by resizeitplz on Friday March 11, 2022 @09:41AM (#30640458)
> maildir method

Guess I'm one of the lucky 10k today - but a search for information isn't turning up much. Could you expand on the maildir method a bit more?