Hey Jordan,

On Thu, 2008-05-22 at 15:08 -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?

Nope, but I know the pain of trying to hack around the problem when
writing the ZFS Automatic Snapshots SMF service - each instance of that,
when enabled adds an entry to the root crontab, and removes it when it's
disabled.

On service startup, I needed to serialise around my updating the
crontab, otherwise the crontab updates setup on each other. Having a
solution to that would be great too.

I echo the other comments in this thread about the time formats - trying
to say "do this every 5 days" in cron at the moment is really tricky to
do properly (see my comments in the start method code below [1])

> 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?

As with Nico, I'd be more than happy to help test!

        cheers,
                        tim


[1] current source at 
http://mediacast.sun.com/users/%7Etimf/media/zfs-auto-snapshot-0.10.tar.gz



Reply via email to