I am running Kali 2.0 64-bit, and I recently noticed that avahi-daemon is starting at boot time, listening on several udp ports.How do I disable it completely, without purging the package itself?I have tried     sudo rcconf --off avahi-daemonBut there is a warning:    Service 'avahi-daemon' is already off. Skipping...I then tried    sudo update-rc.d -f avahi-daemon removeIt doesn't produce any errors, nor warnings, but avahi-daemon still persists at boot time.I then tried editing the /etc/default/avahi-daemon file by adding AVAHI_DAEMON_START = 0But that doesn't work either.I finally used the UPSTART manual override -->> echo manual | sudo tee /etc/init/avahi-daemon.overrideAnd still no go.Please help,I am at my wits's end!Thank you.
How to disable avahi-daemon without uninstalling it
debian;kali linux;avahi
sudo systemctl disable avahi-daemon to disable boot time startup.A few other options are systemctl list-units for a list of all known units, systemctl enable to enable boot time startup, systemctl start to start the service from terminal, but not enable boot time loading and systemctl stop to stop a service which has been started. man systemctl and man systemd will provide complete set of options.Most (not all though) modern Linux distributions have switched or are switching to systemd from the traditional SysV init scripts. Also, http://blog.jorgenschaefer.de/2014/07/why-systemd.html covers some of the basics of systemd.