six demon bag

Wind, fire, all that kind of thing!

2016-12-17

Disable AVAHI Daemon on Debian

To prevent the AVAHI daemon on Debian systems from running without actually uninstalling the package avahi-daemon or touching the runlevels do this:

touch /var/run/avahi-daemon/disabled-for-unicast-local
sed -i 's/^#\?\(AVAHI_DAEMON_DETECT_LOCAL\)=.*/\1=1/' /etc/default/avahi-daemon
service restart avahi-daemon

I've seen people suggest putting a line exit 0 into /etc/default/avahi-daemon, but I wouldn't recommend that, because it would prevent not only starting the daemon, but also stopping it.

Posted 13:31 [permalink]