3 ms·
> cron isn't init's job. Which is why other platforms started moving from cron to init years ago? OS X: > Note: Although it is still supported, cron is not a
by justinsaccount 10y ago
> cron isn't init's job.
Which is why other platforms started moving from cron to init years ago?
OS X:
> Note: Although it is still supported, cron is not a recommended solution. It has been deprecated in favor of launchd. [1]
Solaris:
> cron has had a long reign as the arbiter of scheduled system tasks on
Unix systems. However, it has some critical flaws that make its use
somewhat fraught. [...] cron also lacks validation, error handling, dependency management, and a
host of other features. [...] The Periodic Restarter is a delegated restarter, at
svc:/system/svc/periodic-restarter:default, that allows the creation of
SMF services that represent scheduled or periodic tasks. [2]
[1]: https://developer.apple.com/library/content/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/ScheduledJobs.html https://developer.apple.com/library/content/documentation/Ma...
[2]: https://blogs.oracle.com/SolarisSMF/entry/cron_begone_predicable_task_scheduling https://blogs.oracle.com/SolarisSMF/entry/cron_begone_predic...
- qwertyuiop924 10y agoOkay, so I got that one wrong. I still think it's a bad idea, but I did get that point wrong, true enough. However, the other points I've made are still correct and accurate.