From owner-freebsd-current@FreeBSD.ORG Thu Nov 7 00:21:07 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id C099F805 for ; Thu, 7 Nov 2013 00:21:07 +0000 (UTC) (envelope-from tim@kientzle.com) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 981C62B0D for ; Thu, 7 Nov 2013 00:21:07 +0000 (UTC) Received: by mail-pd0-f177.google.com with SMTP id p10so257280pdj.36 for ; Wed, 06 Nov 2013 16:21:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=r79AKPXCQYRErAweSpaDgi5Pk1iT7lwS2KAVGUpkaEw=; b=Ttmzg5F71QhsYnxr+e7BKffLY5V92s8VIdBpkfaQ5W4l3lb/2E6GHV6/ahI2mZN48W WcO3A9jK3NSBZUc2QhlfwG8SN/KPir02x57BecNQs74d7LIgeNkI4RDvOrOM9e4jV1TR V0iZRj4EX6fsoeebJt/f2xMdp/mbW2+2WNgnbqMOIMivQqMFjU9E3AKbL2/mltwGcG6m LNjC9VRDurRIWdOuCJGk/ws3j7HYQA4cW0uyHVVN7tYYAZHnmtdqPYyM2E0c3MIS6HLo 8E4t/a9/JZIBpK+GVsVvwxo7Ir87zqD8BsWa1gczyt6eTskUUBfEF7BgGm5gXg7/wkWD KujQ== X-Gm-Message-State: ALoCoQnLrTQWul7YmyXLMoxXHqDeTvpoc36OJ/mxnOXTgPMB9aSPQ2snmiV4HrAa3bzK3oIqc9QU X-Received: by 10.68.162.131 with SMTP id ya3mr6033757pbb.102.1383783660989; Wed, 06 Nov 2013 16:21:00 -0800 (PST) Received: from [192.168.2.126] (99-74-169-43.lightspeed.sntcca.sbcglobal.net. [99.74.169.43]) by mx.google.com with ESMTPSA id qn1sm718861pbc.34.2013.11.06.16.20.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 16:21:00 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: cron(8) improvement From: Tim Kientzle In-Reply-To: <52792B60.1030309@allanjude.com> Date: Wed, 6 Nov 2013 16:21:05 -0800 Content-Transfer-Encoding: 7bit Message-Id: <488180AE-5C23-402A-BAA4-E3263D8C52BF@kientzle.com> References: <52792B60.1030309@allanjude.com> To: Allan Jude X-Mailer: Apple Mail (2.1510) Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 00:21:07 -0000 On Nov 5, 2013, at 9:31 AM, Allan Jude wrote: > This came up in discussion on IRC and I thought I should throw it at the > list so I don't forget. > > A user was asking how to do what linux cron does, where there is a > directory /etc/cron.d/ that packages and add files to to create crontabs. > > Making FreeBSD's cron (Vixie Cron) include /etc/cron.d/ and > /usr/local/etc/cron.d/ in the /etc/crontab format seems like a very > useful feature, especially for pkg(8) as it makes it easy and safe to > programatically add and remove crontabs as part of a package. This is a good idea. We should do it. How and if this facility gets used is a separate question. "Tools, not policy." Support for a cron.d directory is a tool that can be used in many ways. The policy of how it should be used is a separate discussion. (For example, whether or not ports or packages should install crontab files into /usr/local/etc/cron.d/ can be richly debated after that directory exists.) Tim