Description of problem: See this thread in the fedora test list: http://lists.fedoraproject.org/pipermail/test/2010-September/093396.html Apparently creating a client callback for avahi causes the avahi-daemon to be started under systemd, this was not the case previously. I have confirmed that my fedora 13 libvirtd.conf file does not modify the mdns_adv setting, but I don't get avahi-daemon running on f13. On f14 (with systemd) I need to uncomment the mdns_adv=0 line to prevent avahi-daemon from starting (event though it is disabled in chkconfig, it starts anyway and the start time and pid seems to indicate it starts immediately after libvirtd). Version-Release number of selected component (if applicable): systemd 9-3 How reproducible: every time Steps to Reproduce: 1.see above 2. 3. Actual results: avahi-daemon running Expected results: No avahi-daemon Additional info:
Avahi nowadays uses bus activation, which causes this.
Previously, libvirtd had a soft dependency on avahi (by passing AVAHI_CLIENT_NO_FAIL to avahi_client_new), and it would operate with or without a running avahi daemon. The change to bus activation results in a hard dependency on avahi, which represents a regression over the previous feature set.
It's not only libvirtd that triggers avahi daemon startup. I don't have libvirtd installed on this laptop but it still activated, probably by the KDE session. But no matter what, there is still a regression: with systemd it is no longer possible to permanently disable avahi-daemon. If I understand the man page correctly then the following should work: # systemctl disable --global avahi-daemon.service avahi-daemon.socket Couldn't find avahi-daemon.service.
*** Bug 634532 has been marked as a duplicate of this bug. ***
The bug is that /usr/share/dbus-1/system-services/org.freedesktop.Avahi.service directly references avahi-daemon.service: SystemdService=avahi-daemon.service Instead avahi-daemon.service should define an installable Alias and the D-Bus service file should reference that.
Created attachment 447717 [details] [PATCH] DBus activate an alias which can be disabled This should fix it, but I haven't tested it yet.
Tested it now and it works as expected. systemctl {en,dis}able avahi-daemon.service now have the desired effect.
Confirmed. With the patch apply "disable" works and avahi is no longer started during startup.
A patch like this one was applied a while back. Thanks putting this together, Michal!