How to stop avahi-daemon

12,000
sudo update-rc.d -f avahi-daemon remove
Share:
12,000

Related videos on Youtube

Michael Mrozek
Author by

Michael Mrozek

Updated on September 17, 2022

Comments

  • Michael Mrozek
    Michael Mrozek over 1 year

    I'm trying to disable avahi-daemon. I tried to modify the file /etc/default/avahi-daemon, setting the AVAHI_DAEMON_DETECT_LOCAL=0 instead of 1, but when I connect to a network it starts anyway; is there no way to stop it?

    I am trying to stop it because every time I connect to a network it and dhclient starts it gives my NIC another address so I cannot access the network. I'm on a Debian machine.

    • Gilles 'SO- stop being evil'
      Gilles 'SO- stop being evil' over 13 years
      The avahi dae/etc/resolvconf/update-libc.d/avahi-daemonmon can be started by /etc/network/if-up.d/avahi-daemon and ``, but this too is disabled if you have AVAHI_DAEMON_DETECT_LOCAL=0 in /etc/default/avahi-daemon. What version of the avahi-daemon package do you have? What is the full contents of /etc/default/avahi-daemon?
  • Bernardo Oliveira
    Bernardo Oliveira over 13 years
    so you are saying that the file /etc/default/avhi-daemon is useless? in debian there is no rc.conf file :(
  • Admin
    Admin over 13 years
    hi, and if i want to enable it again?
  • Admin
    Admin over 13 years
    sudo update-rc.d avahi-daemon defaults
  • ismail
    ismail over 13 years
    rcconf is a program :) And the default file is for changing the behaviour of avahi-daemon not to stop it.
  • Bernardo Oliveira
    Bernardo Oliveira over 13 years
    ah ok I got it! I don't have that program so I have to change the behavior.. Cheers! I m going to try it
  • Admin
    Admin over 13 years
    cheers! I m going to try it