Date: Sat, 09 Nov 2013 21:23:57 -0500 From: Allan Jude <freebsd@allanjude.com> To: Adrian Chadd <adrian@freebsd.org> Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: cron(8) improvement Message-ID: <527EEE3D.9000101@allanjude.com> In-Reply-To: <CAJ-Vmomyk08JDPEhOKo9LHDp2%2Bi0NkzpwJob-AUV1b1jiNwyhA@mail.gmail.com> References: <52792B60.1030309@allanjude.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> <CAJ-VmomXRuwJdKUsbgMjvEtBaDiZoCxacLXOpxhCqoVhkigL6g@mail.gmail.com> <527ED34A.1060401@allanjude.com> <CAJ-Vmokb4=05wVSEzv47sWiU6CLb-_cBQ1FhPSgv%2BeuX8xf2cw@mail.gmail.com> <527EE417.6060704@allanjude.com> <CAJ-VmokX8vV7fz1v%2BR4jXte3vYAQbUF21jscGVYswb=rtk681w@mail.gmail.com> <527EE84D.4060901@allanjude.com> <CAJ-Vmomyk08JDPEhOKo9LHDp2%2Bi0NkzpwJob-AUV1b1jiNwyhA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nrHsfe2G5jHLkHwrrERj4FnXPAnVwFkNj Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2013-11-09 21:13, Adrian Chadd wrote: > On 9 November 2013 17:58, Allan Jude <freebsd@allanjude.com> 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 mak= e >> 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. ahh, right, why didn't I think of that >> 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 scri= pt > * when populating the cron daemon entries in rc.cron.d, don't just > 'cp' in a post-install script. > > > -adrian If the cron daemon is just scanning /etc/cron.d/* and treating it as if those lines had been appended to /etc/crontab I don't see why you couldn't just cp in the post-install. I think it would be better if you didn't have to 'register' a change. --=20 Allan Jude --nrHsfe2G5jHLkHwrrERj4FnXPAnVwFkNj 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/ iQIcBAEBAgAGBQJSfu4/AAoJEJrBFpNRJZKf/lcP/R56O6PfGHto18/d7UtC8cck jfbdo1s53NcyYwQLMyc67uZaBU7fe+GZtKvoC1rODaDEGaS4oujKRyQEtwgTCnsu 1GsUNnOU4MhZQmJjajiu7cJWzBeoUu2k0V7sobgABsUDAqk7TRzLaee12OeYNRvm +I4UPuLzLUVwFcAepW70ASHzWlv4vGZEE28bQIYsu+LP6/LvG30WWXU9AmzTpXhs GDrfjHiRMuvH4aex5DxkDBJ8KBq9lXjhKU0r9xsdDlY1NtFFRl9Mh6jTbsU7udIr eKX0cYbgTa6zxNuoLz0MYCuNp201CE0GlQYXmYHRDMDLRftj/87dSt/ONMmpiQh6 +i3NYwU8yrJJP6MvjciI19JjlEUJPcOdwUs0nJByUim2DkYfvB88dtVCoikIvcXE 9FSAHOL6njBwo9aqQ18Suifhyz/MJ2QbOClwBFoIBSQXsBpEVLxLWIO6eNRXGd4N GqqHUzYYcPWz8pzCFxYhC7Od3boOqdH0vFoTQ7+h/4wVOsDWrO8z5fVfMcPU70EA 835Hunjowb5YkiDI4zH55T+A2+jYsGd1/eaR+wtoCkJ22MvKEUSdfhtAmFjtvmCw XnZOxMx6M9WNeeZrzy+XtBwiraddWben0ruOkI1g3k59PUvefjRlRZXQ212AQSMk Rz6O9VSGM8MEaTEkeHuJ =ctJr -----END PGP SIGNATURE----- --nrHsfe2G5jHLkHwrrERj4FnXPAnVwFkNj--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?527EEE3D.9000101>