On Thu, May 22, 2008 at 03:08:44PM -0700, Jordan Brown wrote: > It seems obvious to me that cron should be turned into an SMF restarter, > so that you can enable, disable, import, and remove cron jobs using > simple and standardized mechanisms. > > Has anybody started to look at this yet?
cron does, BTW, put cronjobs into separate process contracts. There's no need to restart any cronjobs, I don't think, so cron doesn't have to be a restarter as such. Or do you think that there's value in providing cronjob restarting? But moving the crontab storage from /var/cron/crontabs to SMF sounds interesting. What would be the UI? svccfg and svcadm? Something else? Would each cronjob get its own service name, or its own instance name? Or would each cronjob be a property value? Either way there will be interesting RBAC issues. Potential benefits: - better and more flexible (more human readable) specification of times that cronjobs must run at. - better UI (if svccfg then SMF Templates could help lots, but I think you'll need to provide a cron-specific UI) - better control over cronjobs' environment, error/mail options, ... > I'm tempted to try spending some of my copious free time on it, just for > the entertainment value. Were I to do so, would people be interested? In reviewing and testing? Sure :) Nico --