[nsd-users] NSD does not automatically start on FreeBSD reboot

Richard Doty rad at twig.com
Thu Mar 18 02:47:29 UTC 2010


Paul Hoffman wrote:
> At 12:59 AM +0000 3/18/10, Olafur Osvaldsson wrote:
>   
>> Being the NSD FreeBSD port maintainer I noticed this thread on the list (although I still didn't receive your report to me directly).  
>>     
>
> Hrm. It was sent about a minute before this last message to the list.
>
>   
>> 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...
>>     
>
> Others on this list? I'm not up to port maintainer skills, I believe.
>
> >From what it looks to me I have to ask if you remembered to put nsd_enable="YES" into your /etc/rc.conf file?
>
> Yes, definitely.
>
>   
>> 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
>>     
>
> I can assure you: the two scripts in /usr/local/etc/rc.d that did not end in ".sh" both ran fine when run from the command line by the root user, but didn't even try to be run during startup. As soon as I renamed them with .sh and rebooted, they came up fine.
>   

Just a thought - was the script /usr/local/etc/rc.d/nsd executable?  By 
that I mean the mode on the file is rwxr-xr-x or similar

I think a script file that is not executable would be skipped, unless it 
ends in .sh  (the test is in run_rc_script)

Richard.

> _______________________________________________
> nsd-users mailing list
> nsd-users at NLnetLabs.nl
> http://open.nlnetlabs.nl/mailman/listinfo/nsd-users
>   




More information about the nsd-users mailing list