From owner-freebsd-current@FreeBSD.ORG Sun Nov 10 00:29:00 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 2A0CECAC for ; Sun, 10 Nov 2013 00:29:00 +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 F005C2B70 for ; Sun, 10 Nov 2013 00:28:58 +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 A5155468B1 for ; Sun, 10 Nov 2013 00:28:57 +0000 (UTC) Message-ID: <527ED34A.1060401@allanjude.com> Date: Sat, 09 Nov 2013 19:28:58 -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: freebsd-current@freebsd.org 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> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="saIJgj3CGwl8ae1WlImR04exOemvqKwRF" 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 00:29:00 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --saIJgj3CGwl8ae1WlImR04exOemvqKwRF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-11-09 19:18, Adrian Chadd wrote: > On 9 November 2013 16:05, Daniel O'Connor wrote= : >> On 10 Nov 2013, at 24:24, Matthew Seaman wrote: >>> 2) Should ports / packages populate these cron.d directories? >>> >>> This is a much more interesting question. Effectively its aski= ng >>> if a port / package should provide some level of automatic >>> configuration -- a thing that has previously been a no-no for >>> FreeBSD. >> I think it would be OK if they installed entries in a disabled state. >> >> ie either the file is named such that it is ignored by cron (preferabl= e IMO) or the entries in them are commented out. > I want the opposite. > > I'm kinda fed up installing packages that don't enable themselves. > > 'pkg install xorg' is not enough to get a working xorg. You have to > enable hal and dbus and then restart (so things come up in the right > order; manually starting them doesn't work) in order to get X working. > > If people are really worried about this, then I suggest a couple of > package options for this stuff: > > * whether to default enable the package or not; > * whether to default enable the cron scripts or not. > > Please install the cron scripts by default. Please then write up a > simple rc.conf style setup where the cron scripts can check a config > file to see if they should run. I don't want to have to freaking > delete, rename, etc cron.d files. I just want the package files to be > almost-untouched and have an option of working out of the box. > > Please, please allow an option to make this crap work out of the box al= ready. > > > -adrian > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" Well, what about making these extra directories optional then? packages install the crontab entries, but crond ignores them unless you a= dd: 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 structure, where the individual files are only included if the name of the service being started patches. So for example, /etc/rc.conf.d/sshd wouldn't be read when starting crond --=20 Allan Jude --saIJgj3CGwl8ae1WlImR04exOemvqKwRF 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/ iQIcBAEBAgAGBQJSftNNAAoJEJrBFpNRJZKf/dEP/i5LjGf28kSMW7QGqPwz9A7U rdf1yMA6SPfN2PC1du1FR9PWYUCK48OEAKau5exkOuYBvj44spUM2ldwzHwJWfR3 8+Ugf9um71F5kbiI+VYD8Zrz4nSflF/M3nGP4F3f41VczMf702AZddhSvYmQ0yec x/8jzW7R/TVHJdQ8Yp4JEm1sTzP2TF9MevnUVahyof/hVVsJOZMiovzVYN8yFKPN Kva5FFkN3qlouLXO9wWWSvOCWbCxRJNOr7MJ95pNvB2JS9wf2uaqYeZYW0w036f7 NYjm+TxIJQR/cisuktq5Inn7RYGAHzb1vrYCvUCKZon3lwryV51vUrhDBCY3gxKB Q3jhEw0b9uwAqt4ABnKD+/i7oNiMcCH4+ktNF7OEieL7uPB0WHmIbFwQ4V1wh0za jT8AC9oim2kjHCJSPGSvmcT/kVddQ7myXUc04bV5n2G+hIAhHZQ6XnBQbuv4Wyg1 DASkDmu5UMVKr21RYt2tKEiddLWV+29cg+pNi56WPNUsPAxs4I1aXZExpznGGx2H 8RRpQUvdzWJ+2JVJs5ocePMAqBLavh6gFLuB3aMJ1XERQEa8E53Z6zQurgrM5J/h 15fzlhgmpgfKSiyOHYht7n1wc85+Mv2B31LEYt0shCwdWRezBIZEQxNFlCgZfNYc 6TwP/G1kBX/QnV8fJwU2 =B9/I -----END PGP SIGNATURE----- --saIJgj3CGwl8ae1WlImR04exOemvqKwRF--