Why can't I shut down the avahi-daemon in Fedora Linux?
Solution 1
OP posted this also in the Fedora Forums here.
The solution is to disable the service altogether:
systemctl disable avahi-daemon.service
That worked for me.
Solution 2
If someone accidentally come across this - in my opinion the problem is that avahi-daemon.socket is bringing the process up again after you kill it (or try to stop it). The idea of sockets is that on the general the service does not need to be started when the system is loaded, but just when someone really needs it. The socket only monitors if someone needs the service and spawns it. I would try stopping the socket first (systemctl stop avahi-daemon.socket
) and see if after that I can stop the service. See this for more information about sockets.
Another thing that might happen is that systemd can respawn a crashed service (or service that got killed). In this case though, systemctl stop avahi-daemon.service
should work.
Solution 3
The command
systemctl stop avahi-daemon.service
should work.
Related videos on Youtube
cap10ibraim
Updated on September 18, 2022Comments
-
cap10ibraim almost 2 years
I'm using Fedora 16.
I shut down NetworkManager and wpa_supplicant (using service commands), but when I try:
sudo service avahi-daemon stop
or
sudo kill pid
it appears again instantly! How can I figure which process is still using avahi?
-
Lazar about 12 yearsIf you have time, please upvote and/or pick an answer. Thanks!
-
-
cap10ibraim over 12 yearsI tried that but it didn't work the only way was to disable it and restart
-
nhinkle over 12 years@Niels could you edit your answer to include a bit more info about how your solution works?
-
Niels over 12 yearswhat gives the command systemctl status avahi-daemon.service ?
-
JustAMartin about 8 yearsIt seems, this also is accurate for disabling avahi-daemon.service - you have to disable also avahi-daemon.socket to prevent avahi waking up.
-
M H over 7 yearsyou should explain how to enable again
-
Lazar over 7 years
systemctl enable avahi-daemon
May I suggesties to RTFM? -
M H over 7 yearsHahaha or you could just post thorough answer for future users. If everyone RTFM then we wouldn't need this site.
-
Lazar over 7 yearsThe question was only about disabling it. ;-) You're welcome, BTW.