From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 23 19:51:32 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5AC3C420; Mon, 23 Jun 2014 19:51:32 +0000 (UTC) Received: from smtp.digiware.nl (unknown [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A4EE12DB2; Mon, 23 Jun 2014 19:51:31 +0000 (UTC) Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 35AEE1534C4; Mon, 23 Jun 2014 21:51:27 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sZInf7Ki51v8; Mon, 23 Jun 2014 21:51:25 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:daa2:5eff:fe4e:36d2] (unknown [IPv6:2001:4cb8:3:1:daa2:5eff:fe4e:36d2]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPS id 193971534C0; Mon, 23 Jun 2014 21:51:25 +0200 (CEST) References: <53A72666.8090101@cox.net> <53A78C13.8030909@freebsd.org> <53A82008.9050002@digiware.nl> <53A87A9B.8060201@freebsd.org> In-Reply-To: <53A87A9B.8060201@freebsd.org> Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Message-Id: <7A2B44CF-DF48-46C7-9ACE-313E7DF5412B@digiware.nl> X-Mailer: iPad Mail (9B206) From: Willem Jan Withagen Subject: Re: Improve cron(8) Date: Mon, 23 Jun 2014 21:51:31 +0200 To: Alfred Perlstein Cc: Eitan Adler , "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2014 19:51:32 -0000 Op 23 jun. 2014 om 21:06 heeft Alfred Perlstein het vol= gende geschreven: >=20 > On 6/23/14, 11:28 AM, Eitan Adler wrote: >> On 23 June 2014 05:39, Willem Jan Withagen wrote: >>> 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. >>>>>>=20 >>>>>> On 11 June 2014 23:56, Tomek Wa=C5=82aszek wro= te: >>>>>>> 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 unfortunat= ely >>>>>>> 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 >>>>>>>=20 >>>>>>> I've also added one feature from OpenBSD, crontab is poking cron usi= ng >>>>>>> unix-domain socket so we don't need to have suid on crontab. >>>>>>>=20 >>>>>>> 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 :). >>>>>>>=20 >>>>>>> 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 >>>>>>>=20 >>>>>>> This is still work in progress but if someone could have a look on >>>>>>> this and >>>>>>> give me some feedback it would be great. >>>>>>>=20 >>>>>>> Regards, >>>>>>> Tomasz Walaszek >>>=20 >>>=20 >>>>> you should up the version number or start your own renamed application= >>>=20 >>>> Tomek, please don't let messages like this dissuade you from >>>> participating. Please do continue this work, it seems very promising. >>>> Thank you! >>>>=20 >>>> I was myself looking forward to having these additions. Very cool. >>>=20 >>> Hi Tomek, >>>=20 >>> 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 and a= re >>> executed under that users privilidges. >>>=20 >>> Reason that this would be convenient is that tools like puppet don't nee= d to >>> start editing files to remove crontab lines. Which IMHO is always more h= airy >>> then just adding/deleting/updating a file called: >>> /var/cron.d/tool-ABC.cron >> This is absolutely useful and has existed in every large scale >> envrionment I know of. > Agreed, it would be a huge step forward for FreeBSD. >=20 IT is more or less how most tools operate now a days. - global config file Aka /etc/crontab - local config file=20 Aka /etc/crontab.local - directory (1 or more) Aka /var/cron/tabs with users And /var/cron.d for separate files with cron content. --WjW=20=