From owner-freebsd-current@FreeBSD.ORG Sun Nov 10 16:57:32 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 81262284 for ; Sun, 10 Nov 2013 16:57:32 +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 1453624BA for ; Sun, 10 Nov 2013 16:57:30 +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 EA57246FAF for ; Sun, 10 Nov 2013 16:57:29 +0000 (UTC) Message-ID: <527FBAFC.4040409@allanjude.com> Date: Sun, 10 Nov 2013 11:57:32 -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="fPmBAngsQRq8Pi8ve8F4xdfQWxI5WiQPt" 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 16:57:32 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fPmBAngsQRq8Pi8ve8F4xdfQWxI5WiQPt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-11-10 11:21, Warren Block wrote: > On Sun, 10 Nov 2013, 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. > > That would be my preference also. > >> ie either the file is named such that it is ignored by cron >> (preferable IMO) or the entries in them are commented out. > > Why not just use an additional entry in rc.conf? > > rsnapshot_cron=3D"YES" > > (If there is a /usr/local/etc/cron.d/rsnapshot, add it to cron on > start/restart.) > I envisioned crond just scanning the directory for added/removed files, rather than some 'add it to cron' system, and cron doesn't read/parse the rc.conf system. maybe it makes most sense to make it scan /usr/local/etc/cron.d/*.cron So ports can install rsnapshot.cron.sample that the user must manually enable (like we do with config files) > This brings up another problem. When a port is removed, what is done > with ports cron entries that have been user modified? Normally, > modified files would not be removed, but a cron entry for a removed > port definitely should not be running any more, even if the admin > forgot to remove the entry in rc.conf. But just removing the modified > file is bad also, because maybe the port was just removed as part of > an upgrade. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --=20 Allan Jude --fPmBAngsQRq8Pi8ve8F4xdfQWxI5WiQPt 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/ iQIcBAEBAgAGBQJSf7r/AAoJEJrBFpNRJZKfq9oQAJY7w5mTAKt55+WIRSdxX8OY cAlYPih8w4fhBZ6pzjV/cAOROwgDTdrhPX4dNWrVG7eUTlvC0jkLYwqEsy+4ptXy MRJmcwCYh2gT/eFPgi43HEpJROyXxM4ibcWaoy3epKL5Ws04fwT/Gm1OGf5xmMBN J1cIl5GtlIvxHe5Vszmq/XRJncoFTOBdCKLBaa5RaythSV899VNKSVyE/T2iCWTN FDcQjSYzn9ekhMgaoIShAa3+Nyu11YWo3CyZ1UV+kUQSpmUTjFhmz72eQpD5RB/o 6rSm+Ww9Ck57Wz8Qb4imi4tyypshpARIZhgVvqIePCa4Ec9YsiwhCAXpb82J0O7B aO2r/o3iAQVaz6SZ0EbvJeD3QXStyy7r2k/DXm9bB6x/YNPXFCaKObK1Ra8ubjdO bNXLmmjGZskLZrmJtPfqs5E/+RsE+q3c3JaqRivCYai6OF4HbzYu0OS4DmGERf2C hiDq2HZTrNLblSAwRxSAON+E8AtfV+Barqg9o5BjT3+JjHclM0Rr0Zclne4gMnOB K9UlMh0m7J2HX4idf5irTS4xg8q3jPUy6EojjbuC0qizHuNPs1Pa1XnKI2hNK0ys 0kVkUkhAWOJ8z1Iw0uBApIn921jDJIn0c8jlbOsnb9lU/E8VInJtW5lDgue9WlYV +3MfQH+24IYo06y5ufX7 =eioU -----END PGP SIGNATURE----- --fPmBAngsQRq8Pi8ve8F4xdfQWxI5WiQPt--