Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2014 15:26:11 +0200
From:      =?UTF-8?Q?Tomek_Wa=C5=82aszek?= <tmwalaszek@gmail.com>
To:        Willem Jan Withagen <wjw@digiware.nl>
Cc:        freebsd-hackers@freebsd.org, Alfred Perlstein <alfred@freebsd.org>
Subject:   Re: Improve cron(8)
Message-ID:  <CAN3T69u8GfPiamanZTopDt9LC9-Kgw5JOk93a3BPnU59RAuDgg@mail.gmail.com>
In-Reply-To: <53A82008.9050002@digiware.nl>
References:  <CAN3T69vCQTb1hU%2BAUKg%2BKLgsuCttLxYS6u2r9k3w5LM2D4zZoA@mail.gmail.com> <53A72666.8090101@cox.net> <53A78C13.8030909@freebsd.org> <53A82008.9050002@digiware.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
2014-06-23 14:39 GMT+02:00 Willem Jan Withagen <wjw@digiware.nl>:

> On 2014-06-23 4:08, Alfred Perlstein wrote:
>
>> On 6/22/14 11:54 AM, John D. Hendrickson and Sara Darnell wrote:
>>
>>> Eitan Adler wrote:
>>>
>>>> +arch since hackers@ seems to be silent.
>>>>
>>>> On 11 June 2014 23:56, Tomek Wa=C5=82aszek <tmwalaszek@gmail.com> wrot=
e:
>>>>
>>>>> Hello,
>>>>> I saw on the FreeBSD Ideas page topic about cron :).
>>>>> I've started updating the 'original' FreeBSD cron from sources to
>>>>> vixi cron
>>>>> 4.1. I think (well I hope :P) most of the features that were done in
>>>>> FreeBSD cron are now ported into vixi cron 4.1, there are unfortunate=
ly
>>>>> some missing features at the moment:
>>>>> - @every_second - this need to be done
>>>>> - -s and -o, in vixi cron 4.1 daylight time switches are enabled by
>>>>> default, at the moment there is no -s and -o options. So you need to
>>>>> remove
>>>>> '-s' from the cron rc script
>>>>>
>>>>> I've also added one feature from OpenBSD, crontab is poking cron usin=
g
>>>>> unix-domain socket so we don't need to have suid on crontab.
>>>>>
>>>>> Path is in the attachment. I'm testing it on my FreeBSD box and it
>>>>> looks
>>>>> good but anyway don't try it on production machines :).
>>>>>
>>>>> After the installation we have to do a few things:
>>>>> - Add crontab group
>>>>> - Change group to crontab on /var/cron/tabs
>>>>> - Add sticky bit on /var/cron/tabs
>>>>> - Add group write permissions on /var/cron/tabs
>>>>>
>>>>> This is still work in progress but if someone could have a look on
>>>>> this and
>>>>> give me some feedback it would be great.
>>>>>
>>>>> Regards,
>>>>> Tomasz Walaszek
>>>>>
>>>>
>
>
>>> you should up the version number or start your own renamed application
>>>
>>
>  Tomek, please don't let messages like this dissuade you from
>> participating.  Please do continue this work, it seems very promising.
>> Thank you!
>>
>> I was myself looking forward to having these additions.  Very cool.
>>
>
> Hi Tomek,
>
> One of the things I like in some of the other cron's is the possibility t=
o
> add files to something like: /var/cron.d.
> This as contract to /var/cron/tabs, where files need to <username> and ar=
e
> executed under that users privilidges.
>
> Reason that this would be convenient is that tools like puppet don't need
> to start editing files to remove crontab lines. Which IMHO is always more
> hairy then just adding/deleting/updating a file called:
>         /var/cron.d/tool-ABC.cron
>
> I looked around but that is not in Vixie cron, and could be frowned upon
> because of too much possible security pittfalls.
>
> regards,
> --WjW
>
>
>
>
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>

Hello,
I got your point.
>From the technical perspective it should be quite easy to implement this
feature, but I'm not sure whether this will get positive feedback. I
remeber that there was a discussion on the OpenBSD mailing lists (there was
even a patch for this) but they don't like the idea :) maybe FreeBSD
project will like it, I don't know.

At the moment I want to update FreeBSD cron to ISC cron (with all the
features that FreeBSD has at the moment and ISC does not have) and
integrate atrun into cron like it was done in OpenBSD cron. After that (or
faster who knows :)) maybe we should have a discussion about this idea.

Best regards,
Tomasz Walaszek



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN3T69u8GfPiamanZTopDt9LC9-Kgw5JOk93a3BPnU59RAuDgg>