Bug 631271
| Summary: | avahi-daemon started when it should not be | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Tom Horsley <horsley1953> | ||||
| Component: | avahi | Assignee: | Lennart Poettering <lpoetter> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 14 | CC: | chemobejk, jclift, lpoetter, mattdm, metherid, mschmidt, nmiell, notting, plautrba | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-03-08 23:19:57 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Tom Horsley
2010-09-07 17:46:21 UTC
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! |