Paul Hoffman
2010-Mar-17 17:15 UTC
[nsd-users] NSD does not automatically start on FreeBSD reboot
This may be the wrong mailing list, but I suspect some of you have experience with this. I installed NSD from the FreeBSD ports collection, and it runs just fine. I made sure that rc.conf has nsd_enable="YES". Yesterday, the system rebooted and NSD didn't come up. It starts fine with "/usr/local/etc/rc.d/nsd start", but it did not come up on reboot. I just rebooted to test again, and it again fails to come up. Any ideas would be appreciated.
Lew Payne
2010-Mar-17 17:36 UTC
[nsd-users] NSD does not automatically start on FreeBSD reboot
Hello Paul - I'm a dedicated FreeBSD user, and I've been running NSD for several years now, on several machines. I have yet to have an NSD problem during reboot. I suggest you: tail -80 /var/log/messages /var/log/security ... and see if there's any diagnostic output. You may also want to do a "dmesg" and see if there's anything out of the ordinary (such as a pid exiting prematurely). The only other obvious reason would be due to a spelling error in /etc/rc.conf before or on the NSD line (which means that something before it didn't start also). Observing the system reboot on the console terminal might yield some clues. Hope that helps... please keep me posted on what you find! Regards, Lew Payne On Wed, Mar 17, 2010 at 11:15 AM, Paul Hoffman <phoffman at proper.com> wrote:> This may be the wrong mailing list, but I suspect some of you have experience with this. I installed NSD from the FreeBSD ports collection, and it runs just fine. I made sure that rc.conf has nsd_enable="YES". Yesterday, the system rebooted and NSD didn't come up. It starts fine with "/usr/local/etc/rc.d/nsd start", but it did not come up on reboot. I just rebooted to test again, and it again fails to come up. > > Any ideas would be appreciated.
Paul Wouters
2010-Mar-17 17:44 UTC
[nsd-users] NSD does not automatically start on FreeBSD reboot
On Wed, 17 Mar 2010, Paul Hoffman wrote:> This may be the wrong mailing list, but I suspect some of you have experience with this. I installed NSD from the FreeBSD ports collection, and it runs just fine. I made sure that rc.conf has nsd_enable="YES". Yesterday, the system rebooted and NSD didn't come up. It starts fine with "/usr/local/etc/rc.d/nsd start", but it did not come up on reboot. I just rebooted to test again, and it again fails to come up.Not sure about the freebsd initscripts, but on Fedora/RHEL we make sure that we do an nsdc rebuild if we find any of the zone files is newer then the nsd.db, otherwise nsd will not start properly. Perhaps this is what you are seeing now too? Specifically, if you removed a zone and it is still in the nsd.db. Paul
Paul Hoffman
2010-Mar-17 22:53 UTC
[nsd-users] NSD does not automatically start on FreeBSD reboot
No one's going to like the answer for this: the startup file is /usr/local/etc/rc.d/nsd, not /usr/local/etc/rc.d/nsd.sh. On FreeBSD 6, apparently the ".sh" is required to be seen on startup. I had not tested this earlier because the machine had been up for the better part of a year, and I only installed NSD a few months ago. I have reported this to the NSD FreeBSD maintainer.
Olafur Osvaldsson
2010-Mar-18 00:59 UTC
[nsd-users] NSD does not automatically start on FreeBSD reboot
Hi, Being the NSD FreeBSD port maintainer I noticed this thread on the list (although I still didn't receive your report to me directly). I have long ago stopped running FreeBSD+NSD setups but have been maintaining the port the best I can, its open for grabs if anyone is interested...>From what it looks to me I have to ask if you remembered to putnsd_enable="YES" into your /etc/rc.conf file? The rc.d scripts do not have to end with ".sh", it affects how they are run, ".sh" scripts are sourced into the current shell rather than a subshell and the startup process will terminate if the script does, non ".sh" scripts on the other hand are not sourced into the current shell and do not stop the startup process if they terminate. As far as I know this also applies to FreeBSD 6.0 /Oli On Wed, Mar 17, 2010 at 10:53 PM, Paul Hoffman <phoffman at proper.com> wrote:> No one's going to like the answer for this: the startup file is > /usr/local/etc/rc.d/nsd, not /usr/local/etc/rc.d/nsd.sh. On FreeBSD 6, > apparently the ".sh" is required to be seen on startup. I had not tested > this earlier because the machine had been up for the better part of a year, > and I only installed NSD a few months ago. > > I have reported this to the NSD FreeBSD maintainer. > _______________________________________________ > nsd-users mailing list > nsd-users at NLnetLabs.nl > http://open.nlnetlabs.nl/mailman/listinfo/nsd-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.nlnetlabs.nl/pipermail/nsd-users/attachments/20100318/eae756b7/attachment.htm>