Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 65739

Summary: bug in /etc/init.d/daapd (mDNSResponder isn't started)
Product: Gentoo Linux Reporter: Jonas Bähr <jonas.baehr>
Component: New packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: updated init-script with little bug

Description Jonas Bähr 2004-09-28 16:47:10 UTC
Hi,

There is a bug in the daapd init script. This program should share music to apple iTunes. To be seen in the network by iTunes, daapd need the programm mDNSResponder   which has to be started first (see http://www.deleet.de/projekte/daap/daapd/FAQ).
However, the initscript doesn't start it.

Try this:
1) /etc/init.d/daapd stop (in case it's started and iTunes doesn't see your Server)
2) start mDNSResponder
3) start daapd
Now iTunes sees your server. I think the initscript should start mDNSResponder in order to daapd work correctly (is seen by iTunes)

hint: start "daapd -v" without mDNSResponder is running. Then you'll see
"howl: sw_discovery_init() failed"
in the output. With mDNSResponder running this does'n show up and iTunes find's your server like expected.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-30 16:51:47 UTC
can you pleasse attach an updated init script which fixes the problem, thanks.
Comment 2 Jonas Bähr 2004-09-30 17:40:17 UTC
Created attachment 40820 [details]
updated init-script with little bug

I've never written init-scripts till now, so it isn't perfect. It works, as it
starts mDNSResponder first, but it doesn't manage to shut thisone down on
"stop". ps x | grep mDNS still shows up 3 runngin processes... You have to use
SIGKILL to shut them down as SIGTERM seem to have no effect...
Comment 3 Sébastien ESTIENNE 2004-10-04 16:18:01 UTC
the proposed init-scripts is not clean.
you juste have to put
use mDNSResponder in the depend section
Comment 4 Sébastien ESTIENNE 2004-10-04 16:32:14 UTC
i propose a fixed ebuild (bump version and init script) 
here: http://bugs.gentoo.org/show_bug.cgi?id=66364
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-10-05 01:52:53 UTC

*** This bug has been marked as a duplicate of 66364 ***