1

I disabled the avahi-daemon according to the method set out here, namely editing the /etc/init/avahi-daemon.conf file to:

start on (never
          and filesystem
      and started dbus)
stop on stopping dbus

After a reboot, I now get from service avahi-daemon status (or initctl list | grep avahi)

 avahi-daemon stop/waiting

Which sounds like I have successfully disabled the service.

However, in my syslog at boot I see :

dbus[991]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
dbus[991]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out

This seems to cost me half a minute of extra boot time...How can I disable this trying to launch avahi?

Braiam
  • 67,791
  • 32
  • 179
  • 269
fpghost
  • 1,659

1 Answers1

3

dbus[991]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out

This means that it failed to connect to the service since it's not running. The 30 seconds you spend waiting is not because the service is starting, is because another process expects the service to be running when dbus tries to access the key. If you want to really stop Avahi you should instead remove the package:

sudo apt-get remove avahi-daemon

There isn't a sane way to deactivate the daemon without messing with other networking services.

Braiam
  • 67,791
  • 32
  • 179
  • 269