From owner-freebsd-arch@FreeBSD.ORG Sun Jun 22 22:18:39 2014 Return-Path: Delivered-To: freebsd-arch@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 D29BE290 for ; Sun, 22 Jun 2014 22:18:39 +0000 (UTC) Received: from mail-qc0-x236.google.com (mail-qc0-x236.google.com [IPv6:2607:f8b0:400d:c01::236]) (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 8CEA72B2D for ; Sun, 22 Jun 2014 22:18:39 +0000 (UTC) Received: by mail-qc0-f182.google.com with SMTP id m20so5456617qcx.27 for ; Sun, 22 Jun 2014 15:18:38 -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=YmLXjdCNmBRRAeNZ4W2XuG64is/1kS4GuHMg0UH/sYs=; b=AwoBpvlqYZbA5dtZbblzDk+qVmS3CihRdl7t3xeWgXYLB35JizM9WMm7vW3s3oJCZD IbN+LQOhlQtyQr8P59JaR3M+L3WLLbkTdwOMlT5/ZYEsHXo8YYUItvKNMqypRj+3dxhy Z7abKocdNoXHDXwZe3v1Y6PhiKILhwqgSAQgg= 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=YmLXjdCNmBRRAeNZ4W2XuG64is/1kS4GuHMg0UH/sYs=; b=GVUkpbWRrskBfLEW1eIzYZDFbSFWNARIrIwJES7cglnjO4QR8kUR00qgwqRPmD+fVN 841mVk2vjQ7mAnGqtKU70yPfCLooBPgL35wjKnZBhDiaGZlhtYviCJQsMjQR5qUiAl/J yA93OqV/ZUUznDRoAjUIH773NGIsjkKSpNf4jSABzBaWDS4duxKHIXigV20hXjXWOhhM d3oOE7+FSUXRDeu+/IJ+9NfRmFnEVMYpTnzosgWRL5jipH3w2ZFAwHaQ6XpINV8Bvxml sEELL+j+c+jH8ZlR5LyNeShDWNBX+wmxWc1N4aTFsz7vrzV8ZXTpLTs+P+6xHydjD/AD XEbw== X-Gm-Message-State: ALoCoQm16Ykb9HG337oebEoyg5iVPl9pyDR24U2RcBJVwaU0X+LDZ4s+IKTTuYalvVW5rcqLemo3 X-Received: by 10.224.7.6 with SMTP id b6mr27151058qab.45.1403475518730; Sun, 22 Jun 2014 15:18:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.96.222.131 with HTTP; Sun, 22 Jun 2014 15:18:08 -0700 (PDT) In-Reply-To: References: From: Eitan Adler Date: Sun, 22 Jun 2014 15:18:08 -0700 Message-ID: Subject: Re: Improve cron(8) To: =?UTF-8?Q?Tomek_Wa=C5=82aszek?= , freebsd-arch@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jun 2014 22:18:40 -0000 On 13 June 2014 00:04, Eitan Adler wrote: > +arch since hackers@ seems to be silent. > > On 11 June 2014 23:56, Tomek Wa=C5=82aszek wrote: >> Hello, >> I saw on the FreeBSD Ideas page topic about cron :). >> I've started updating the 'original' FreeBSD cron from sources to vixi c= ron >> 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 unfortunately >> 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 rem= ove >> '-s' from the cron rc script >> >> I've also added one feature from OpenBSD, crontab is poking cron using >> 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. Tomek, Could you please file a bug with this patch? I'll take a look when I have time, but hopefully someone will get to it first. Also, can you please generate the patch against HEAD and not 10.0.0? --=20 Eitan Adler