From owner-freebsd-current@FreeBSD.ORG Sun Nov 10 01:40:40 2013 Return-Path: Delivered-To: freebsd-current@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 ESMTP id D9E42617; Sun, 10 Nov 2013 01:40:39 +0000 (UTC) (envelope-from freebsd@allanjude.com) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id 94A582E66; Sun, 10 Nov 2013 01:40:39 +0000 (UTC) Received: from [10.1.1.1] (S01060001abad1dea.hm.shawcable.net [50.70.108.129]) (Authenticated sender: allan.jude@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 08E2046937; Sun, 10 Nov 2013 01:40:37 +0000 (UTC) Message-ID: <527EE417.6060704@allanjude.com> Date: Sat, 09 Nov 2013 20:40:39 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Adrian Chadd Subject: Re: cron(8) improvement References: <52792B60.1030309@allanjude.com> <488180AE-5C23-402A-BAA4-E3263D8C52BF@kientzle.com> <1383788977.14448.44112617.6F0D61A0@webmail.messagingengine.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> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7qniiipClj8SII16d6UcI3fb5IALoothG" 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 01:40:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7qniiipClj8SII16d6UcI3fb5IALoothG Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-11-09 20:05, Adrian Chadd wrote: > On 9 November 2013 16:28, Allan Jude wrote: > >> Well, what about making these extra directories optional then? >> >> packages install the crontab entries, but crond ignores them unless yo= u add: >> >> cron_flags=3D"--scandir /etc/cron.d --scandir /usr/local/etc/cron.d" >> >> or something to that effect >> >> As for packages enabling things, this seems like a good use of the >> /etc/rc.conf.d/ infrastructure, although it has a kind of odd structur= e, >> where the individual files are only included if the name of the servic= e >> being started patches. So for example, /etc/rc.conf.d/sshd wouldn't be= >> read when starting crond > Right. I'd rather it read in everything, but I realise that scales poor= ly. > > The other alternative is to have a config file populated with the > contents of /etc/rc.conf.d/*, so to modify it you'd edit the > individual config file(s), then do a "commit" operation to push it > into the cache. > > If the cache file doesn't exist, it simply goes through and reads * > > if someone wanted to speed up the rcvar set, they could just replace > it with a read from an sqlite table or an individual config file (as > said above); the rcvar thing is -supposed- to just be attribute=3Dvalue= , > so it can be stored anywhere. > > Note to previous poster: i think the existing policy sucks. :-) > > > -adrian I suppose you could easily do something like: cat /etc/rc.conf.d/* > /etc/rc.conf.cat and add rc.conf.cat to rc_conf_files --=20 Allan Jude --7qniiipClj8SII16d6UcI3fb5IALoothG Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBAgAGBQJSfuQaAAoJEJrBFpNRJZKfJ5MQAJFKGLvMdfC5x4vtUQrBHWSL Pv4A/8zmmnJ1xL07jmXV+BEkHGU+z8w5G4KdHFShpHkJOnDjY8H41fnHbRHGd7Os G8VFxcTmy8jZUq57x6gS2VSdS0omczIYFt5g0N8isurNRfingimT6RLEXWoInJx9 Cinjdq2KgS27iOHf/4QUCdt4UEJR8SPxPUm1er/dgWIuWtvVzEwqGbhdnfG4HPJ0 wBOpS8vElh9iNRfyYvEKCRwfs5CCfXBAoAdincVyb+b24UtrfoshfueRhzXexOWh QQzgiHfRuJWbcSnCO9V4y3G6hdFqifgCsUlA5efGckV9r8zjvimgzNpO4TpGmJfQ 38EdBg5TC9rEDaCn0bjkg2I6Qd3+4dTWDkFf7SkV9AdDiwSwlrpj9R09T5K3s2XE XMmyQnNbI9daN3HbBiuWYP7SSkxy2ks8rTxTvlACz0IYPbB2M9bxppe4BW9jeqvB gAehITEzaIrD47x/6jQ/2fQ1y5hATZAz4vkZD55SA1vHM9nt/yTSOIa5+/PuS1GS PATybY0xu+WuGK2GtZc4PJ+V2vDKmcjsulXpLpy3hXjy+ruk09qr/bVjX8UaGGKY Sh9dPgxg+CUXbhgj2NmpSSxFNFhc4c6l+jpfQV1hBbC8937e7aOf3QVMryWmHNoD lV+7XAvGLqhcxFvjiDJf =2P0w -----END PGP SIGNATURE----- --7qniiipClj8SII16d6UcI3fb5IALoothG--