[Bug 624043] Re: Avahi needs to be restarted after boot to broadcast netatalk services

Jeffrey Paxton 624043 at bugs.launchpad.net
Sat Jan 7 18:19:41 UTC 2012


Hi Guys,

I run Arch Linux on a Thinkpad and two different desktops. I mention
this because I only have this problem on one desktop so it is logical to
assume the problem may be hardware / driver related. At any rate I found
a workaround similar to the one mentioned in post #17.

just adding /ect/rc.d/avahi-daemon start to rc.local didn't work. Nor
did /etc/rc.d/avahi-daemon restart. With or without avahi-daemon
declared in rc.conf it still wasn't working. I made sure that avahi-
daemon started after sshd in rc.conf (since I'm trying to file-share
over ssh) and still no dice. This is what Finally worked for me;

in rc.conf add avahi-daemon just before gdm

in rc.local add

sleep 10
/etc/rc.d/avahi-daemon stop
/etc/rc.d/avahi-daemon start
/etc/rc.d/avahi-daemon restart

Probably over kill, i don't know what part of this solution is actually
working around the issue but it works.

Thanks guys and I hope this helps someone.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/624043

Title:
  Avahi needs to be restarted after boot to broadcast netatalk services

Status in “avahi” package in Ubuntu:
  New

Bug description:
  When I boot my server, it doesn't broadcast netatalk services. I have to manually restart avahi with:
    restart avahi-daemon

  Once I do this, the server shows up instantly in the Finder of my Mac.

  The problem is pretty much exactly the same as reported by the person here:
    http://ubuntuforums.org/showthread.php?t=1482573
  The only difference is that the person here fixed it by installing packages from Debian Testing, which is something I'm wary of.

  
  I added a file /etc/avahi/services/afpd.service, with the following contents:
  <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
  <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
  <service-group>
  <name replace-wildcards="yes">%h</name>
  <service>
  <type>_afpovertcp._tcp</type>
  <port>548</port>
  </service>
  <service>
  <type>_device-info._tcp</type>
  <port>0</port>
  <txt-record>model=Xserve</txt-record>
  </service>
  </service-group>

  And there is no .local domain on my network that is causing problems
  with avahi starting.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: avahi-daemon 0.6.25-1ubuntu6
  ProcVersionSignature: Ubuntu 2.6.32-24.41-generic 2.6.32.15+drm33.5
  Uname: Linux 2.6.32-24-generic x86_64
  Architecture: amd64
  Date: Wed Aug 25 09:42:25 2010
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: avahi

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/624043/+subscriptions




More information about the foundations-bugs mailing list