From owner-freebsd-current@FreeBSD.ORG Sun Nov 10 14:04:21 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 6B3FC5F5 for ; Sun, 10 Nov 2013 14:04:21 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1F5292C9E for ; Sun, 10 Nov 2013 14:04:20 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id rAAE4DSs021501 for ; Sun, 10 Nov 2013 09:04:19 -0500 (EST) (envelope-from george+freebsd@m5p.com) Message-ID: <527F925D.5030201@m5p.com> Date: Sun, 10 Nov 2013 09:04:13 -0500 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: cron(8) improvement References: <52792B60.1030309@allanjude.com> <527BCA55.2000207@allanjude.com> <527C5D52.7030508@allanjude.com> <047405A8-B6EB-427B-A2E4-6254DD1A077B@orthanc.ca> <3E6377FF-69FE-48E4-BFB1-E5095A7FA1BB@orthanc.ca> <527C6DEF.6020102@allanjude.com> <527E3EB3.6000301@FreeBSD.org> <8034B822-F903-43D1-8BF6-DFAD7C22F5B0@gsoft.com.au> <527ED34A.1060401@allanjude.com> <527EE417.6060704@allanjude.com> <527EE84D.4060901@allanjude.com> <527EEE3D.9000101@allanjude.com> In-Reply-To: <527EEE3D.9000101@allanjude.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.3 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Sun, 10 Nov 2013 09:04:19 -0500 (EST) 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: Sun, 10 Nov 2013 14:04:21 -0000 On 11/09/13 21:23, Allan Jude wrote: > On 2013-11-09 21:13, Adrian Chadd wrote: >> On 9 November 2013 17:58, Allan Jude wrote: >> >>> Well, if the rc.conf config is specific to the daemon being installed by >>> the package, then the existing /etc/rc.conf.d/ system works fine, it >>> just falls down a little on xorg configuring hald, unless you just make >>> the xorg package create /etc/rc.conf.d/hald and /etc/rc.conf.d/dbus >> If I install hal/dbus, why wouldn't they themselves populate >> /etc/rc.conf.d/hald and /etc/rc.conf.d/dbus ? >> >> If there are hal/dbus options that need configuring by other packages, >> then sure, you'll need to add some other things too. > ahh, right, why didn't I think of that > >>> I like the simplicity of rc.conf, and I would much rather not involve an >>> sqlite database, I am not sure how that could possibly be faster then >>> sourcing an extra shell script. >> Don't focus on that. The sqlite example is just that - an example - >> showing what kind of operations you would want to implement to _allow_ >> you to do that. I'm not advocating for doing it in freebsd-base. >> >> The point I'm making is this: >> >> * when populating rc.conf.d/, don't just do 'cp' in a post-install script >> * when populating the cron daemon entries in rc.cron.d, don't just >> 'cp' in a post-install script. >> >> >> -adrian > > If the cron daemon is just scanning /etc/cron.d/* and treating it as if > those lines had been appended to /etc/crontab I don't see why you > couldn't just cp in the post-install. I think it would be better if you > didn't have to 'register' a change. > > For this whole thread, please s,/etc/rc.d,/usr/local/etc/rc.d,g -- George