From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 23 18:28:57 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25212DC4 for ; Mon, 23 Jun 2014 18:28:57 +0000 (UTC) Received: from mail-qa0-x229.google.com (mail-qa0-x229.google.com [IPv6:2607:f8b0:400d:c00::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D3F85258E for ; Mon, 23 Jun 2014 18:28:56 +0000 (UTC) Received: by mail-qa0-f41.google.com with SMTP id cm18so6097785qab.14 for ; Mon, 23 Jun 2014 11:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=LDmvy3bJznwxtw3Hk7/couiqvlMKPS+r1InWX5G4yU4=; b=D6K/H7p7e9B8u6Luzh7jCo6r0ClMgsF6UDkb6BNOFNDjt/3PbcPLVwl3eBI15O5aN5 tivtWxUryByCu3To/YI8Th0niATENFQqj3704vfDJZnPxHPT46/CABaDhxddYJnXjymM /LB7NQ2yTkSiT9ds5NeHROw+KZ2CA1jWAfvpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=LDmvy3bJznwxtw3Hk7/couiqvlMKPS+r1InWX5G4yU4=; b=Fs1dW+jvV8cugS78cEZJfARcjeva5xZqRxYcCKXHKElH4jFe/tKjS5tDktAWZWrPFW 8tfr7pOPAmAMdEUm3tivnsRe4rGEaWbbV2xPyIpKGaJI7KCjQuyBm+LkuPq/mcpXJdu0 MvsLVGp8nnu2dJ4rttJAxlD+5gx9GGpEumfe4366FUnpaCtOb9nTgUJ/bFdQtDkjqIbe 6h4dRDV3h4tt78wKLzITRQxP6ZVjc5qSQy4zrklXr7LxA+1p9SZrkXVO9g1xJvchsN/A Znuya3TiCITKEN4FFB6EP6KrBWRiNdQkNCGLbleF1WNNgVAr65pZn0+xxwmBcd81M8nq UEHw== X-Gm-Message-State: ALoCoQmtoK/3M7KPRxG+kZs9Fkd2netQWeBkyy9h+gBUbRrDFVMkmEoij8R1qb5v1T+Iqc1QmMJ/ X-Received: by 10.140.47.245 with SMTP id m108mr34208021qga.9.1403548135935; Mon, 23 Jun 2014 11:28:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.222.131 with HTTP; Mon, 23 Jun 2014 11:28:25 -0700 (PDT) In-Reply-To: <53A82008.9050002@digiware.nl> References: <53A72666.8090101@cox.net> <53A78C13.8030909@freebsd.org> <53A82008.9050002@digiware.nl> From: Eitan Adler Date: Mon, 23 Jun 2014 11:28:25 -0700 Message-ID: Subject: Re: Improve cron(8) To: Willem Jan Withagen Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Alfred Perlstein 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 18:28:57 -0000 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. >>>> >>>> On 11 June 2014 23:56, Tomek Wa=C5=82aszek 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 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 ha= iry > 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. --=20 Eitan Adler