NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD as a TimeCapsule?



On Mar 19, 2014, at 01:34 , matthew sporleder <msporleder%gmail.com@localhost> 
wrote:

> On Tue, Mar 18, 2014 at 11:50 AM, Fredrik Pettai <pettai%nordu.net@localhost> 
> wrote:
>> 
>>> Just a reflection on NetBSD's mdnsd(8):
>>> 
>>> NetBSD's mdnsd(8) (version 212.1) was imported into NetBSD in September 
>>> 2009.
>>> My old Snow Leopard (which is probably one of few left) is running version 
>>> 258.21, so the version imported into NetBSD originates from Leopard. So 
>>> mdnsd in NetBSD seems more than obsolete. If no one plan to upgrade it, 
>>> maybe it should be removed from the next major release of NetBSD ?
>> 
>> I was informed that a newer version of mdnsd(8) is available in 
>> pkgsrc/net/mDNSresponder, so I installed that to see if that would help, but 
>> it fails to start with the message:
>> 
>> Mar 18 14:56:53 xsrv1 mDNSResponder: mDNSResponder (Engineering Build) (Mar 
>> 18 2014 14:43:05) starting
>> Mar 18 14:56:53 xsrv1 mDNSResponder: ERROR: bind(listenfd, (struct sockaddr 
>> *) &laddr, sizeof(laddr)); failed: 48 (Address already in use)
>> Mar 18 14:56:53 xsrv1 mDNSResponder: ERROR: udsserver_init: 48 (Address 
>> already in use)
> 
> Address already in use.  Did you shutdown mdnsd?  Check netstat/lsof, etc

yes, old mdnsd was not running prior to this. So that message was a red 
herring...

>> Mar 18 14:56:53 xsrv1 mDNSResponder: mDNS_AddDNSServer: Lock not held! 
>> mDNS_busy (0) mDNS_reentrancy (0)
>> Mar 18 14:56:53 xsrv1 mDNSResponder: mDNS_AddDNSServer: Lock not held! 
>> mDNS_busy (0) mDNS_reentrancy (0)

The problem it seems, was that /var/run/mdnsd was a directory owned by NetBSD 
bundled mdnsd (_mdnsd:_mdnsd)
Removing that, made /usr/pkg/sbin/mdnsd write some other files:

$ ls -l /var/run/m*
...
srwxrwxrwx  1 root    wheel         0 Mar 19 09:20 mdnsd
-rw-r--r--  1 root    wheel         5 Mar 19 09:20 mdnsd.pid

And stay up. 

Now, lets see if netatalk can do some working shares too…

/P

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail



Home | Main Index | Thread Index | Old Index