Date: Sun, 10 Nov 2013 11:57:32 -0500 From: Allan Jude <freebsd@allanjude.com> To: freebsd-current@freebsd.org Subject: Re: cron(8) improvement Message-ID: <527FBAFC.4040409@allanjude.com> In-Reply-To: <alpine.BSF.2.00.1311100912070.90718@wonkity.com> References: <52792B60.1030309@allanjude.com> <488180AE-5C23-402A-BAA4-E3263D8C52BF@kientzle.com> <1383788977.14448.44112617.6F0D61A0@webmail.messagingengine.com> <527AFAA1.1040001@allanjude.com> <CA%2B7WWSdFFk4npy0=TOWO=6RApv5-wuJASHhE87eUf52DjQrxjw@mail.gmail.com> <D260751E-85D2-4591-88E0-5EFE1821D532@orthanc.ca> <CA%2B7WWSf_%2BBg8rjLdN1j032G2P81odfmQe-Ejyq7A4CqyqPqiAA@mail.gmail.com> <527BCA55.2000207@allanjude.com> <D5199AC5-61E9-4D58-B31E-51E47F1CCFDF@orthanc.ca> <527C5D52.7030508@allanjude.com> <047405A8-B6EB-427B-A2E4-6254DD1A077B@orthanc.ca> <CA%2B7WWSfiWT4wprOS8oQS5YaeE%2BjjyxfK5fzAyFz8XMyX_J%2BoLw@mail.gmail.com> <3E6377FF-69FE-48E4-BFB1-E5095A7FA1BB@orthanc.ca> <527C6DEF.6020102@allanjude.com> <527E3EB3.6000301@FreeBSD.org> <8034B822-F903-43D1-8BF6-DFAD7C22F5B0@gsoft.com.au> <alpine.BSF.2.00.1311100912070.90718@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <matthew@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?527FBAFC.4040409>