From owner-freebsd-current@FreeBSD.ORG Sun Nov 10 02:13:44 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 78655BA4 for ; Sun, 10 Nov 2013 02:13:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22a.google.com (mail-qe0-x22a.google.com [IPv6:2607:f8b0:400d:c02::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 312EA2FA2 for ; Sun, 10 Nov 2013 02:13:44 +0000 (UTC) Received: by mail-qe0-f42.google.com with SMTP id df13so61956qeb.29 for ; Sat, 09 Nov 2013 18:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2UpniasgeXMMCULM7qrCjfBpqHf7WK/KNIv4ZmI9qVA=; b=mY7UI+sdltncROOT0oTVFXPnvN72a+QbM3gVS+QRI90zJpWOTIrIcmuLg7xGG5+G8Z IAwRdlP2MhofXF0qSJSnk6Cm/HCHWYeRepL1YOqopplWbAaVP+JmaHj94zwNI4ukyrRX ci2jTXyXBtSUQxqqu0DGvqtMVDRP9jYT5Sc5+dwbrvKosUM8hykQW6uw33qznwyAqRKR 2n4i9SeO/YA+uQJ89Trg3andOUcCf/XOpOyR3VveW1y/OoJRuuyGhQyQOKPVnKOOBpiS FREJfIZmxrKbdFIIq9uxqLkGgbJiSvfuf//5pLyBvc3HxiY3UySGJku0HyJsMJlfoyGM 0WnQ== MIME-Version: 1.0 X-Received: by 10.49.59.70 with SMTP id x6mr34977357qeq.17.1384049623441; Sat, 09 Nov 2013 18:13:43 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Sat, 9 Nov 2013 18:13:43 -0800 (PST) In-Reply-To: <527EE84D.4060901@allanjude.com> References: <52792B60.1030309@allanjude.com> <527AFAA1.1040001@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> Date: Sat, 9 Nov 2013 18:13:43 -0800 X-Google-Sender-Auth: 6BbosFG_A2vd0k4SDIQmCguC69c Message-ID: Subject: Re: cron(8) improvement From: Adrian Chadd To: Allan Jude Content-Type: text/plain; charset=ISO-8859-1 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: Sun, 10 Nov 2013 02:13:44 -0000 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. > 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