In Debian 8 which uses systemd, the avahi service is enabled by default. It flooded my syslog with usesless messages like
Code:
Aug 21 10:42:54 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:54 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Aug 21 10:42:55 wirawan2 avahi-daemon[1474]: Invalid response packet from host xxx.xxx.xxx.xxx.
Tons of them! Out of the 16 syslog samples I have, it contains over 606000 lines of that! Yikes!
Frankly I do not like avahi daemon and don't care to have it running on my system. In particular, this software sniffs everyone on the network.
So here is my question: How to disable avahi daemon for good in systemd-based system and prevent its name being called by anyone (so to speak). I tried several commands:
Code:
systemd stop avahi-daemon
systemd disable avahi-daemon
but these do not persist across reboot, and in particular it can still be activated somehow. I found another way, which is to mask the service:
Code:
systemd mask avahi-daemon
Once I masked avahi-daemon, my syslog is still filled with this error--much less frequency but still annoying:
Code:
Sep 2 11:57:33 wirawan2 dbus[1486]: [system] Activating via systemd: service name='org.freedesktop.Avahi' unit='dbus-org.freedesktop.Avahi.service'
Sep 2 11:57:33 wirawan2 dbus[1486]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.Avahi.service': Unit dbus-org.freedesktop.Avahi.service failed to load: No such file or directory.
What is actually the proper way to remove avahi daemon from operating? dbus is still trying to call for avahi daemon.
Wirawan