Date: Thu, 15 Jan 2009 07:22:39 -0500 From: Maxim Khitrov <mkhitrov@gmail.com> To: Andrew Reilly <andrew-freebsd@areilly.bpc-users.org> Cc: roam@freebsd.org, freebsd-stable@freebsd.org Subject: Re: How to get djbdns to start early enough to satisfy ntpd at boot? Message-ID: <26ddd1750901150422t11ca7188hf4f3f25b797f8a61@mail.gmail.com> In-Reply-To: <20090115051422.GA59032@duncan.reilly.home> References: <20090115051422.GA59032@duncan.reilly.home>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 15, 2009 at 12:14 AM, Andrew Reilly <andrew-freebsd@areilly.bpc-users.org> wrote: > Hi there, > > I've been a happy djbdns+tinydns user for many, many years. I > want to keep using it, so answers of the form "bletch! Use ISC > BIND the way BSD intended" will be ignored :-) > > Having said that, one annoying consequence of my transition > some time ago to using ntpd, rather than just setting the clock > once-off with ntpdate as I used to, is that the /etc/rc.d > mechanism starts ntpd before /usr/local/etc/rc.d/svscan.sh > starts svscan, which starts /services/dnscache. That wouldn't > matter if ntpd was a bit sensible and just kept trying to find > its nomminated servers, but it gives up and just sits there not > synchronising time from any reference. So I have to remember to > manually "/etc/rc.d/ntpd restart" every time I reboot. > > So: does anyone know how to modify the boot-time order so that > svscan starts at (or before) the point in the boot cycle where > BIND would, on other systems? I suspect that it should be > possible by changing the PROVIDE: in svscan.sh to include one of > the things REQUIRE:'d by ntpd. Or perhaps the REQUIRE: LOGIN in > svscan.sh is incompatible with the BEFORE: LOGIN in ntpd? > > Has any other user of dnscache encountered and solved this > problem? > I use the following in svscan.sh, no problems with ntpdate or any other service: # PROVIDE: svscan # REQUIRE: FILESYSTEMS netif pf # BEFORE: routing - Max
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26ddd1750901150422t11ca7188hf4f3f25b797f8a61>